Skip to content

Commit

Permalink
#368 GBA minor optimization of branch return address
Browse files Browse the repository at this point in the history
  • Loading branch information
XProger committed May 26, 2022
1 parent c820952 commit 4ec68f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/platform/gba/asm/flush.s
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ flush_asm:
.draw:
// r0 = flags
// r1 = ptr
adr lr, .next_face
tst face, face
adrne lr, .loop_list
adreq lr, .next_ot

tst flags, #FACE_CLIPPED
bne drawPoly
Expand Down Expand Up @@ -209,7 +211,9 @@ flush_asm:

// r0 = flags
// r1 = ptr
adr lr, .next_face
tst face, face
adrne lr, .loop_list
adreq lr, .next_ot

// gui
cmp type, #FACE_TYPE_SPRITE
Expand All @@ -227,10 +231,6 @@ flush_asm:
str uv, [ptr, #(VERTEX_T + VERTEX_SIZEOF * 1)]
b rasterize_asm

.next_face:
tst face, face
bne .loop_list

.next_ot:
cmp list, OT
bge .loop_ot
Expand Down

0 comments on commit 4ec68f1

Please sign in to comment.