Merge branch 'master' of pterpstra.com:m68k-backplane-computer/rom

This commit is contained in:
pjht 2023-12-20 13:05:59 -06:00
commit 561a73e02e
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -102,6 +102,7 @@ farc_done:
| Length in d0 | Length in d0
sort_ram_cards: sort_ram_cards:
movem.l d2-d4/a2, -(a7) | Save calle-preserved registers movem.l d2-d4/a2, -(a7) | Save calle-preserved registers
src_outer_loop:
move.b #0, d1 | d1 = newlen move.b #0, d1 | d1 = newlen
move.b #1, d2 | d2 = i move.b #1, d2 | d2 = i
move.l a0, a1 | a1 holds the pointer to the current pair move.l a0, a1 | a1 holds the pointer to the current pair
@ -125,6 +126,6 @@ bra.b src_inner_loop
src_inner_loop_done: src_inner_loop_done:
move.b d1, d0 | len = newlen move.b d1, d0 | len = newlen
cmp #1, d0 | if n > 1, branch to outer loop cmp #1, d0 | if n > 1, branch to outer loop
bgt.b sort_ram_cards bgt.b src_outer_loop
movem.l (a7)+, d2-d4/a2 | Restore calle-preserved registers movem.l (a7)+, d2-d4/a2 | Restore calle-preserved registers
rts rts