From 440f2bc99ded46a87888df8a386526ccfeb12f86 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Mon, 30 Nov 2020 18:48:08 +0100 Subject: [PATCH] added hex printing to MEGA65 build API --- STATUS.md | 3 ++- src/kernal/jumptable_m65/jprhex.s | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/kernal/jumptable_m65/jprhex.s diff --git a/STATUS.md b/STATUS.md index a8e6603a..c0f6d372 100644 --- a/STATUS.md +++ b/STATUS.md @@ -400,12 +400,13 @@ Not all of them - only these we want to have implemented. ### API extensions - MEGA65 build -Not all of them - only these we want to have implemented. Note: this is likely to change in the future! +Note: this is likely to change in the future, possibly in an incompatible way!
| Address | Name | Status | Remarks | | :-------: | :------- | :------: | :--------------------------------------------------------------------: | +| ? | PRHEX | DONE | print hex value from .A | | `$FF7D` | PRIMM | DONE | print immediate, address compatible with C128 and C65 ROMs | | `$FFF8` | | DONE | reset vector for usage within hypervisor, starts in legacy mode | diff --git a/src/kernal/jumptable_m65/jprhex.s b/src/kernal/jumptable_m65/jprhex.s new file mode 100644 index 00000000..b0a9162f --- /dev/null +++ b/src/kernal/jumptable_m65/jprhex.s @@ -0,0 +1,10 @@ +;; #LAYOUT# M65 KERNAL_0 #TAKE +;; #LAYOUT# * * #IGNORE + + +; Prints value from .A in hex + + +JPRHEX: + + jmp print_hex_byte