B848: Routine at B848
scroll_horizon |
B848 |
LD HL,($A24A) |
|
B84B |
LD A,H |
|
B84C |
OR L |
|
B84D |
RET Z |
|
B84E |
LD A,($A25C) |
|
B851 |
AND A |
|
B852 |
JR Z,scroll_horizon_3 |
|
B854 |
EX AF,AF' |
|
B855 |
RR H |
|
B857 |
RLA |
|
B858 |
RLA |
|
B859 |
RLA |
|
B85A |
AND $06 |
|
B85C |
LD C,A |
|
B85D |
LD A,($A25D) |
|
B860 |
ADD A,C |
|
B861 |
LD C,A |
|
B862 |
LD B,$00 |
|
B864 |
LD HL,$B828 |
|
B867 |
ADD HL,BC |
|
B868 |
LD B,(HL) |
|
B869 |
INC HL |
|
B86A |
LD C,(HL) |
|
B86B |
LD HL,$A25E |
|
B86E |
DEC (HL) |
|
B86F |
JR NZ,scroll_horizon_3 |
|
B871 |
LD (HL),B |
|
B872 |
EX AF,AF' |
|
B873 |
LD A,C |
|
B874 |
JP P,scroll_horizon_0 |
|
B877 |
NEG |
scroll_horizon_0 |
B879 |
LD HL,$C7E8 |
|
B87C |
ADD A,(HL) |
|
B87D |
JP P,scroll_horizon_1 |
|
B880 |
ADD A,$14 |
scroll_horizon_1 |
B882 |
CP $14 |
|
B884 |
JR C,scroll_horizon_2 |
|
B886 |
SUB $14 |
scroll_horizon_2 |
B888 |
LD (HL),A |
scroll_horizon_3 |
B889 |
XOR A |
|
B88A |
LD B,A |
|
B88B |
LD E,A |
|
B88C |
EX AF,AF' |
|
B88D |
LD A,($A258) |
|
B890 |
OR A |
|
B891 |
RET Z |
|
B892 |
JP P,scroll_horizon_4 |
|
B895 |
INC E |
|
B896 |
NEG |
scroll_horizon_4 |
B898 |
LD HL,$B827 |
|
B89B |
LD C,A |
|
B89C |
ADD HL,BC |
|
B89D |
LD A,($A25B) |
|
B8A0 |
LD C,A |
|
B8A1 |
LD A,($A23F) |
|
B8A4 |
SUB C |
|
B8A5 |
AND A |
|
B8A6 |
RET Z |
|
B8A7 |
LD C,(HL) |
scroll_horizon_5 |
B8A8 |
SUB C |
|
B8A9 |
JR C,scroll_horizon_6 |
|
B8AB |
INC B |
|
B8AC |
EX AF,AF' |
|
B8AD |
ADD A,C |
|
B8AE |
EX AF,AF' |
|
B8AF |
JR scroll_horizon_5 |
scroll_horizon_6 |
B8B1 |
LD A,B |
|
B8B2 |
AND A |
|
B8B3 |
RET Z |
|
B8B4 |
LD HL,$A25A |
|
B8B7 |
ADD A,(HL) |
|
B8B8 |
LD (HL),A |
|
B8B9 |
LD A,B |
|
B8BA |
RR E |
|
B8BC |
LD B,$00 |
|
B8BE |
JR NC,scroll_horizon_7 |
|
B8C0 |
DEC B |
|
B8C1 |
NEG |
scroll_horizon_7 |
B8C3 |
LD HL,($A171) |
|
B8C6 |
LD C,A |
|
B8C7 |
ADD HL,BC |
|
B8C8 |
LD ($A171),HL |
|
B8CB |
EX AF,AF' |
|
B8CC |
LD HL,$A25B |
|
B8CF |
ADD A,(HL) |
|
B8D0 |
LD (HL),A |
|
B8D1 |
RET |