Skip to content

Commit

Permalink
Fix asm library code branches that break when .proc addresses give th…
Browse files Browse the repository at this point in the history
…e thunk address.
  • Loading branch information
jbrandwood committed Oct 23, 2024
1 parent 3797c4c commit 265ad85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/asm/elmer/include/cdrom.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ cdr_cplay_next .proc

; Timeout, retry.

bra cdr_cplay_next
jmp cdr_cplay_next ; Not a BRA because a .proc!

; Process SCSI phases.

Expand Down
2 changes: 1 addition & 1 deletion examples/asm/elmer/include/ted2-fat32.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@ f32_seek_cur .proc
sta <_ax + 0

bsr f32_next_frag ; Move forward to next fragment.
bra f32_seek_cur ; Try again.
jmp f32_seek_cur ; Try again.

; frag_len > seek_len

Expand Down

0 comments on commit 265ad85

Please sign in to comment.