Skip to content

Commit

Permalink
Merge pull request #36 from matushorvath/print-padding
Browse files Browse the repository at this point in the history
Adopt new print_num_radix interface
  • Loading branch information
matushorvath authored Mar 19, 2024
2 parents 8cd735a + 3ae88a9 commit 3846143
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v4
- name: Checkout vm6502
uses: actions/checkout@v4

- name: Checkout xzintbit
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion src/error.s
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ report_error:

add [reg_pc], 0, [rb - 1]
add 16, 0, [rb - 2]
arb -2
add 0, 0, [rb - 3]
arb -3
call print_num_radix

add report_error_msg_end, 0, [rb - 1]
Expand Down
3 changes: 2 additions & 1 deletion src/func_test_callback.s
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ func_test_callback_failed:

add [reg_pc], 0, [rb - 1]
add 16, 0, [rb - 2]
arb -2
add 0, 0, [rb - 3]
arb -3
call print_num_radix

add func_test_failed_end, 0, [rb - 1]
Expand Down
2 changes: 1 addition & 1 deletion src/func_test_header.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This the header for the 6502 functional test binary.
# It needs to be linked immediately after binary.o and immediately before the functional test binary itself.
# It needs to be linked immediately before the functional test binary itself.

# The binary is available in git repository https://github.com/Klaus2m5/6502_65C02_functional_tests

Expand Down
2 changes: 1 addition & 1 deletion src/msbasic_header.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This the header for the MS Basic binary.
# It needs to be linked immediately after binary.o and immediately before the MS Basic binary itself.
# It needs to be linked immediately before the MS Basic binary itself.

.EXPORT binary_start_address
.EXPORT binary_load_address
Expand Down
9 changes: 6 additions & 3 deletions src/trace.s
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ print_trace:
# Print address
add [reg_pc], 0, [rb - 1]
add 16, 0, [rb - 2]
arb -2
add 0, 0, [rb - 3]
arb -3
call print_num_radix

out ':'
Expand All @@ -48,7 +49,8 @@ print_trace:

add [rb + opcode], 0, [rb - 1]
add 16, 0, [rb - 2]
arb -2
add 0, 0, [rb - 3]
arb -3
call print_num_radix

out ')'
Expand All @@ -67,7 +69,8 @@ print_trace_data_loop:

add [rb - 3], 0, [rb - 1]
add 16, 0, [rb - 2]
arb -2
add 0, 0, [rb - 3]
arb -3
call print_num_radix

add [rb + idx], 1, [rb + idx]
Expand Down

0 comments on commit 3846143

Please sign in to comment.