92E1: Draws objects (right hand version).
draw_object_right |
92E1 |
XOR A |
|
92E2 |
LD ($933E),A |
|
92E5 |
LD A,B |
|
92E6 |
CP $0A |
|
92E8 |
JR C,draw_object_right_0 |
|
92EA |
LD A,$0A |
draw_object_right_0 |
92EC |
EX DE,HL |
|
92ED |
LD E,(HL) |
|
92EE |
INC HL |
|
92EF |
LD D,(HL) |
|
92F0 |
RLCA |
|
92F1 |
DEC A |
|
92F2 |
LD C,A |
|
92F3 |
LD B,$00 |
|
92F5 |
ADD HL,BC |
|
92F6 |
LD B,(HL) |
|
92F7 |
INC HL |
|
92F8 |
LD L,(HL) |
|
92F9 |
LD H,$00 |
|
92FB |
ADD HL,DE |
draw_object_right_stretchy_entrypt |
92FC |
LD A,(IX+$00) |
|
92FF |
BIT 7,B |
|
9301 |
JR Z,draw_object_right_1 |
|
9303 |
ADD A,B |
|
9304 |
JR draw_object_right_2 |
draw_object_right_1 |
9306 |
ADD A,B |
|
9307 |
RET C |
draw_object_right_2 |
9308 |
RET Z |
draw_object_right_3 |
9309 |
CP $F7 |
|
930B |
RET NC |
|
930C |
LD C,$00 |
draw_object_right_4 |
930E |
AND $FC |
|
9310 |
RRCA |
|
9311 |
RRCA |
|
9312 |
LD ($9396),A |
|
9315 |
RRA |
|
9316 |
LD B,A |
|
9317 |
LD E,(HL) |
|
9318 |
CPL |
|
9319 |
ADD A,$20 |
|
931B |
CP E |
|
931C |
JR C,draw_object_right_5 |
|
931E |
LD A,E |
draw_object_right_5 |
931F |
INC HL |
|
9320 |
LD D,(HL) |
|
9321 |
SRL D |
|
9323 |
JP Z,draw_object_right_6 |
|
9326 |
LD C,A |
|
9327 |
EX AF,AF' |
|
9328 |
LD A,E |
|
9329 |
SUB C |
|
932A |
LD C,A |
draw_object_common |
932B |
LD A,($9396) |
|
932E |
CPL |
|
932F |
LD ($9396),A |
|
9332 |
EX AF,AF' |
draw_object_right_6 |
9333 |
JR NC,draw_object_right_7 |
|
9335 |
EX AF,AF' |
|
9336 |
SLA C |
|
9338 |
SLA E |
|
933A |
EX AF,AF' |
draw_object_right_7 |
933B |
EX AF,AF' |
|
933C |
INC HL |
draw_object_right_8 |
933D |
LD D,$00 |
|
933F |
LD A,(IY+$00) |
|
9342 |
SUB (IY+$35) |
|
9345 |
JR NZ,draw_object_right_11 |
draw_object_right_9 |
9347 |
LD A,(IY+$35) |
|
934A |
ADD A,D |
|
934B |
RET M |
|
934C |
PUSH AF |
|
934D |
INC A |
|
934E |
LD D,(HL) |
|
934F |
SUB D |
|
9350 |
JR C,draw_object_right_10 |
|
9352 |
XOR A |
draw_object_right_10 |
9353 |
ADD A,D |
|
9354 |
INC HL |
|
9355 |
LD D,$01 |
|
9357 |
JR draw_object_right_15 |
draw_object_right_11 |
9359 |
BIT 7,D |
|
935B |
JR NZ,draw_object_right_12 |
|
935D |
SUB D |
|
935E |
JP draw_object_right_13 |
draw_object_right_12 |
9361 |
ADD A,D |
draw_object_right_13 |
9362 |
LD D,A |
|
9363 |
JP Z,draw_object_right_9 |
|
9366 |
JP M,draw_object_right_9 |
|
9369 |
LD A,(IY+$35) |
|
936C |
PUSH AF |
|
936D |
LD A,(HL) |
|
936E |
DEC A |
|
936F |
SUB D |
|
9370 |
JP NC,draw_object_right_14 |
|
9373 |
POP AF |
|
9374 |
LD A,($93C1) |
|
9377 |
AND A |
|
9378 |
RET Z |
|
9379 |
LD A,($933E) |
|
937C |
LD D,(HL) |
|
937D |
SUB D |
|
937E |
RET P |
|
937F |
LD ($933E),A |
|
9382 |
LD A,($9405) |
|
9385 |
SUB D |
|
9386 |
RET C |
|
9387 |
RET Z |
|
9388 |
LD ($9405),A |
|
938B |
JR draw_object_right_8 |
draw_object_right_14 |
938D |
INC A |
|
938E |
INC D |
|
938F |
INC HL |
draw_object_right_15 |
9390 |
PUSH BC |
|
9391 |
PUSH DE |
|
9392 |
LD D,A |
|
9393 |
LD B,$00 |
|
9395 |
LD A,$00 |
|
9397 |
RRA |
|
9398 |
JR NC,draw_object_right_16 |
|
939A |
INC HL |
|
939B |
INC HL |
draw_object_right_16 |
939C |
LD A,(HL) |
|
939D |
INC HL |
|
939E |
LD H,(HL) |
|
939F |
LD L,A |
|
93A0 |
ADD HL,BC |
|
93A1 |
LD ($9413),HL |
|
93A4 |
LD C,E |
|
93A5 |
POP AF |
|
93A6 |
DEC A |
|
93A7 |
JR Z,draw_object_right_18 |
draw_object_right_17 |
93A9 |
ADD HL,BC |
|
93AA |
DEC A |
|
93AB |
JP NZ,draw_object_right_17 |
draw_object_right_18 |
93AE |
LD B,D |
|
93AF |
LD D,$00 |
|
93B1 |
EXX |
|
93B2 |
POP BC |
|
93B3 |
POP AF |
|
93B4 |
LD D,A |
|
93B5 |
AND $0F |
|
93B7 |
ADD A,$F0 |
|
93B9 |
LD H,A |
|
93BA |
LD A,D |
|
93BB |
AND $70 |
|
93BD |
ADD A,A |
|
93BE |
ADD A,B |
|
93BF |
LD L,A |
|
93C0 |
LD A,$00 |
|
93C2 |
AND A |
|
93C3 |
JP Z,draw_object_right_19 |
|
93C6 |
DEC A |
|
93C7 |
JR NZ,draw_object_right_21 |
|
93C9 |
EX AF,AF' |
|
93CA |
JP C,sub_b7ef |
|
93CD |
JP draw_object_right_28 |
draw_object_right_19 |
93D0 |
EX AF,AF' |
|
93D1 |
JR NZ,draw_object_right_20 |
|
93D3 |
JP C,sub_b67c_5 |
|
93D6 |
JP plot_sprite |
draw_object_right_20 |
93D9 |
JP C,plot_masked_sprite_flipped |
|
93DC |
JP plot_sprite_flipped |
draw_object_right_21 |
93DF |
EX AF,AF' |
|
93E0 |
JP C,draw_object_right_25 |
|
93E3 |
SRL A |
|
93E5 |
JP C,plot_sprite_xxx_odd |
|
93E8 |
LD IX,$94C8 |
|
93EC |
CPL |
|
93ED |
ADD A,$05 |
|
93EF |
LD C,A |
|
93F0 |
RLCA |
|
93F1 |
RLCA |
|
93F2 |
ADD A,C |
|
93F3 |
LD C,A |
|
93F4 |
LD B,$00 |
|
93F6 |
ADD IX,BC |
|
93F8 |
LD BC,$94B1 |
draw_object_right_22 |
93FB |
LD ($9410),BC |
|
93FF |
LD ($941E),BC |
|
9403 |
EXX |
draw_object_right_23 |
9404 |
LD A,$00 |
|
9406 |
SUB B |
|
9407 |
JR Z,draw_object_right_24 |
|
9409 |
JR C,draw_object_right_24 |
|
940B |
LD ($9405),A |
|
940E |
EXX |
|
940F |
CALL plot_sprite_entry |
|
9412 |
LD HL,$0000 |
|
9415 |
LD B,$00 |
|
9417 |
JP draw_object_right_23 |
draw_object_right_24 |
941A |
ADD A,B |
|
941B |
LD B,A |
|
941C |
EXX |
|
941D |
JP plot_sprite_entry |
plot_sprite_xxx_odd |
9420 |
INC A |
|
9421 |
LD IX,$951A |
|
9425 |
CPL |
|
9426 |
ADD A,$05 |
|
9428 |
LD C,A |
|
9429 |
RLCA |
|
942A |
RLCA |
|
942B |
ADD A,C |
|
942C |
LD C,A |
|
942D |
LD B,$00 |
|
942F |
ADD IX,BC |
|
9431 |
LD BC,$9503 |
|
9434 |
JR draw_object_right_22 |
draw_object_right_25 |
9436 |
LD IX,$B729 |
|
943A |
CPL |
|
943B |
ADD A,$09 |
|
943D |
RLCA |
|
943E |
LD C,A |
|
943F |
RLCA |
|
9440 |
ADD A,C |
|
9441 |
LD C,A |
|
9442 |
LD B,$00 |
|
9444 |
ADD IX,BC |
|
9446 |
LD BC,($9413) |
|
944A |
LD ($946D),BC |
|
944E |
LD A,($9416) |
|
9451 |
LD ($9470),A |
|
9454 |
LD A,($9405) |
|
9457 |
LD ($9460),A |
|
945A |
LD B,$0F |
|
945C |
EXX |
|
945D |
LD D,$00 |
draw_object_right_26 |
945F |
LD A,$00 |
|
9461 |
SUB B |
|
9462 |
JR C,draw_object_right_27 |
|
9464 |
JR Z,draw_object_right_27 |
|
9466 |
LD ($9460),A |
|
9469 |
CALL plot_masked_sprite |
|
946C |
LD HL,$0000 |
|
946F |
LD B,$00 |
|
9471 |
JP draw_object_right_26 |
draw_object_right_27 |
9474 |
ADD A,B |
|
9475 |
LD B,A |
|
9476 |
JP plot_masked_sprite |
draw_object_right_28 |
9479 |
EX AF,AF' |
|
947A |
EXX |
|
947B |
LD D,$00 |
|
947D |
PUSH BC |
|
947E |
PUSH HL |
|
947F |
LD H,D |
|
9480 |
LD L,D |
|
9481 |
LD A,B |
|
9482 |
LD B,$05 |
|
9484 |
DEC A |
|
9485 |
RLA |
|
9486 |
RLA |
loop_9487 |
9487 |
RLA |
|
9488 |
JR NC,draw_object_right_29 |
|
948A |
ADD HL,DE |
draw_object_right_29 |
948B |
ADD HL,HL |
|
948C |
DJNZ loop_9487 |
|
948E |
RLA |
|
948F |
JR NC,draw_object_right_30 |
|
9491 |
ADD HL,DE |
draw_object_right_30 |
9492 |
POP BC |
|
9493 |
ADD HL,BC |
|
9494 |
POP BC |
|
9495 |
DEC D |
|
9496 |
LD A,E |
|
9497 |
NEG |
|
9499 |
LD E,A |
|
949A |
EXX |
|
949B |
EX AF,AF' |