summaryrefslogtreecommitdiff
path: root/flags.asm
diff options
context:
space:
mode:
authorDuncan Smith2010-09-14 22:50:24 -0700
committerDuncan Smith2010-09-14 22:50:24 -0700
commit3759ea83b657719244d12765f5717cae576fefb5 (patch)
tree151975ce00bbcf342a20557fe4329d84fc694981 /flags.asm
parent1f43ebf7030be20a3e559375a0ad09262ca2e1c3 (diff)
Conditional jumps work now.
Holy shit that was a hairy debug session. I have a lot to look forward to.
Diffstat (limited to 'flags.asm')
-rw-r--r--flags.asm17
1 files changed, 12 insertions, 5 deletions
diff --git a/flags.asm b/flags.asm
index 40e2f44..0377108 100644
--- a/flags.asm
+++ b/flags.asm
@@ -44,7 +44,9 @@ F_ADD_SAVE MACRO
F_SET #%
ENDM
- ;; Normalize and return carry bit (is loaded into Z bit)
+ ;; Normalize and return inverse of emulated Carry bit (loaded
+ ;; into host zero flag)
+
;; Destroys d1
f_norm_c:
move.b flag_valid-flag_storage(a3),d1
@@ -60,7 +62,9 @@ FNC_ok:
andi.b #%00000001,d1
rts
- ;; Normalize and return zero bit (loaded into Z bit)
+ ;; Normalize and return inverse of emulated Zero bit (loaded
+ ;; into host zero flag)
+
;; Destroys d1
f_norm_z:
move.b flag_valid-flag_storage(a3),d1
@@ -72,8 +76,9 @@ FNZ_ok:
andi.b #%01000000,d1
rts
- ;; Normalize and return Parity/oVerflow bit (loaded into Z
- ;; bit)
+ ;; Normalize and return inverse of emulated Parity/oVerflow
+ ;; bit (loaded into host zero flag)
+
;; Destroys d1
f_norm_pv:
move.b flag_valid-flag_storage(a3),d1
@@ -160,7 +165,9 @@ f_cc_byte:
popm d2-d5
rts
- ;; Normalize and return Sign bit (loaded into Z bit).
+ ;; Normalize and return inverse of emulated Sign bit (loaded
+ ;; into host zero flag).
+
;; Destroys d1
f_norm_sign:
move.b flag_valid-flag_storage(a3),d1