summaryrefslogtreecommitdiff
path: root/alu.s
diff options
context:
space:
mode:
authorAstrid Smith2011-10-22 00:48:25 -0700
committerAstrid Smith2011-10-22 00:48:25 -0700
commit3c802cbedc1f5e5f07afb837efcc160c11336e83 (patch)
tree671a540f93f5d910594119eb7e40b438facf49bb /alu.s
parentb9be2d76a48409e1b5053338cd5f51f22b6e5b2f (diff)
Now gas eats it all happily
With the exception of the final binary being too large to link ...
Diffstat (limited to 'alu.s')
-rw-r--r--alu.s18
1 files changed, 9 insertions, 9 deletions
diff --git a/alu.s b/alu.s
index 0602807..78186dd 100644
--- a/alu.s
+++ b/alu.s
@@ -28,7 +28,7 @@ alu_adc:
move.b d1,f_tmp_dst_b
add.b d2,d1
move sr,f_host_ccr
- move.w #$0202,flag_byte
+ move.w #0x0202,flag_byte
rts
alu_sbc:
@@ -37,7 +37,7 @@ alu_sbc:
|| d1 - (d0+C) -> d1
|| sets flags
- push.l d2
+ push_l d2
bsr flags_normalize
move.b flag_byte(pc),d2
andi.b #1,d2
@@ -46,9 +46,9 @@ alu_sbc:
move.b d1,f_tmp_dst_b
sub.b d2,d1
move sr,f_host_sr
- move.b #$02,flag_byte
- move.b #$02,flag_valid
- pop.l d2
+ move.b #0x02,flag_byte
+ move.b #0x02,flag_valid
+ pop_l d2
rts
alu_sub:
@@ -63,8 +63,8 @@ alu_sub:
move.b d0,f_tmp_src_b
move.b d1,f_tmp_dst_b
move.b #1,f_tmp_byte
- andi.b #%00000010,flag_valid
- move.b #%00000010,flag_byte
+ andi.b #0b00000010,flag_valid
+ move.b #0b00000010,flag_byte
sub d0,d1
move sr,f_host_sr
rts
@@ -89,8 +89,8 @@ alu_cp:
move.b d0,f_tmp_src_b
move.b d1,f_tmp_dst_b
move.b #1,f_tmp_byte
- andi.b #%00000010,flag_valid
- move.b #%00000010,flag_byte
+ andi.b #0b00000010,flag_valid
+ move.b #0b00000010,flag_byte
sub.b d0,d1
move sr,f_host_sr
rts