1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-06 05:07:48 +02:00

#368 GBA minor optimization of branch return address

This commit is contained in:
XProger
2022-05-26 07:42:38 +03:00
parent c8209526a8
commit 4ec68f1f89

View File

@@ -176,7 +176,9 @@ flush_asm:
.draw: .draw:
// r0 = flags // r0 = flags
// r1 = ptr // r1 = ptr
adr lr, .next_face tst face, face
adrne lr, .loop_list
adreq lr, .next_ot
tst flags, #FACE_CLIPPED tst flags, #FACE_CLIPPED
bne drawPoly bne drawPoly
@@ -209,7 +211,9 @@ flush_asm:
// r0 = flags // r0 = flags
// r1 = ptr // r1 = ptr
adr lr, .next_face tst face, face
adrne lr, .loop_list
adreq lr, .next_ot
// gui // gui
cmp type, #FACE_TYPE_SPRITE cmp type, #FACE_TYPE_SPRITE
@@ -227,10 +231,6 @@ flush_asm:
str uv, [ptr, #(VERTEX_T + VERTEX_SIZEOF * 1)] str uv, [ptr, #(VERTEX_T + VERTEX_SIZEOF * 1)]
b rasterize_asm b rasterize_asm
.next_face:
tst face, face
bne .loop_list
.next_ot: .next_ot:
cmp list, OT cmp list, OT
bge .loop_ot bge .loop_ot