Skip to content

Commit

Permalink
Whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matushorvath committed Mar 15, 2024
1 parent 934dd41 commit 7728819
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/arithmetic.s
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ execute_adc:
add [rb - 3], 0, [rb + b]

# Decimal flag?
jz [flag_decimal], execute_adc_not_decimal
jz [flag_decimal], execute_adc_not_decimal

# Split a into high and low part
add [reg_a], 0, [rb - 1]
Expand Down Expand Up @@ -80,7 +80,7 @@ execute_adc_bcd_hi_no_carry:
mul [rb + a_hi], 16, [rb + sum]
add [rb + sum], [rb + a_lo], [rb + sum]

jz 0, execute_adc_update_flags
jz 0, execute_adc_update_flags

execute_adc_not_decimal:
# Sum [reg_a] + [b] + [flag_carry]
Expand Down Expand Up @@ -124,7 +124,7 @@ execute_sbc:
add [rb - 3], 0, [rb + b]

# Decimal flag?
jz [flag_decimal], execute_sbc_not_decimal
jz [flag_decimal], execute_sbc_not_decimal

# Split a into high and low part
add [reg_a], 0, [rb - 1]
Expand Down Expand Up @@ -176,7 +176,7 @@ execute_sbc_bcd_hi_no_carry:
mul [rb + a_hi], 16, [rb + diff]
add [rb + diff], [rb + a_lo], [rb + diff]

jz 0, execute_sbc_update_flags
jz 0, execute_sbc_update_flags

execute_sbc_not_decimal:
# Subtract [reg_a] - [b] + [flag_carry] - 1
Expand Down
6 changes: 3 additions & 3 deletions src/error.s
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ report_error:
hlt

report_error_msg_start:
db "vm6502 error: ", 0
db "vm6502 error: ", 0
report_error_msg_pc:
db " (pc: ", 0
db " (pc: ", 0
report_error_msg_end:
db ")", 0
db ")", 0
.ENDFRAME

.EOF
2 changes: 1 addition & 1 deletion src/gen_bits.s
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ tmp:
db 0

header:
db ".EXPORT bits", 10, 10, "# Generated using gen_bits.s", 10, 10, "bits:", 10, 0
db ".EXPORT bits", 10, 10, "# Generated using gen_bits.s", 10, 10, "bits:", 10, 0
line_start:
db " db ", 0
line_end:
Expand Down
2 changes: 1 addition & 1 deletion src/incdec.s
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ execute_inc:
arb -1
add 1, 0, [rb + delta]

jz 0, execute_inc_dec_generic
jz 0, execute_inc_dec_generic

execute_dec:
arb -1
Expand Down
2 changes: 1 addition & 1 deletion src/memory.s
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ pull:

##########
mem:
db 0
db 0

image_too_big_error:
db "image too big to load at specified address", 0
Expand Down

0 comments on commit 7728819

Please sign in to comment.