1
0
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:
Karol Stasiak
2019-07-27 00:58:10 +02:00
parent be9d27e2ee
commit 35ba36ce11
21 changed files with 399 additions and 26 deletions
+5 -1
View File
@@ -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
+5
View File
@@ -53,3 +53,8 @@ _lo_nibble_to_hex_lbl:
macro asm void panic() {
? CALL _panic
}
noinline asm word call(word de) {
PUSH DE
RET
}
+8
View File
@@ -96,3 +96,11 @@ asm word __div_u16u8u16u8() {
}
#endif
#if ZPREG_SIZE >= 4
noinline asm word call(word ax) {
JMP ((__reg + 2))
}
#endif