mirror of
https://github.com/KarolS/millfork.git
synced 2026-04-20 18:16:35 +00:00
Function pointers – initial version
This commit is contained in:
@@ -47,4 +47,8 @@ macro asm void panic() {
|
||||
? JSR _panic
|
||||
}
|
||||
|
||||
array __constant8 = [8]
|
||||
const array __constant8 = [8]
|
||||
|
||||
#if ZPREG_SIZE < 4
|
||||
const array call = [2]
|
||||
#endif
|
||||
|
||||
@@ -53,3 +53,8 @@ _lo_nibble_to_hex_lbl:
|
||||
macro asm void panic() {
|
||||
? CALL _panic
|
||||
}
|
||||
|
||||
noinline asm word call(word de) {
|
||||
PUSH DE
|
||||
RET
|
||||
}
|
||||
|
||||
@@ -96,3 +96,11 @@ asm word __div_u16u8u16u8() {
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if ZPREG_SIZE >= 4
|
||||
|
||||
noinline asm word call(word ax) {
|
||||
JMP ((__reg + 2))
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user