| scroll_landscape |
DDF8 |
LD A,(scroll_down) |
|
DDFB |
BIT 7,A |
|
DDFD |
JR Z,scroll_landscape_0 |
|
DDFF |
NEG |
| scroll_landscape_0 |
DE01 |
LD (vertical_step_size),A |
|
DE04 |
LD C,$00 |
|
DE06 |
LD HL,(view_column) |
| scroll_landscape_1 |
DE09 |
LD A,(origin_y) |
|
DE0C |
LD B,A |
|
DE0D |
LD A,(scroll_down) |
|
DE10 |
ADD A,B |
|
DE11 |
LD (origin_y),A |
|
DE14 |
LD A,(scroll_down) |
|
DE17 |
NEG |
|
DE19 |
LD B,A |
|
DE1A |
LD A,(view_y) |
|
DE1D |
ADD A,B |
|
DE1E |
LD (view_y),A |
|
DE21 |
CP $B8 |
|
DE23 |
JR NC,scroll_landscape_2 |
|
DE25 |
CP $16 |
|
DE27 |
JR NC,scroll_landscape_3 |
|
DE29 |
LD A,$B7 |
|
DE2B |
LD (view_y),A |
|
DE2E |
XOR A |
|
DE2F |
LD (origin_y),A |
|
DE32 |
DEC H |
|
DE33 |
INC C |
|
DE34 |
JP scroll_landscape_1 |
| scroll_landscape_2 |
DE37 |
LD A,$17 |
|
DE39 |
LD (view_y),A |
|
DE3C |
LD A,$A0 |
|
DE3E |
LD (origin_y),A |
|
DE41 |
INC H |
|
DE42 |
INC C |
|
DE43 |
JP scroll_landscape_1 |
| scroll_landscape_3 |
DE46 |
LD A,(scroll_across) |
|
DE49 |
LD B,A |
|
DE4A |
LD A,(origin_x) |
|
DE4D |
ADD A,B |
|
DE4E |
LD (origin_x),A |
|
DE51 |
LD A,(scroll_across) |
|
DE54 |
NEG |
|
DE56 |
LD B,A |
|
DE57 |
LD A,(view_x) |
|
DE5A |
ADD A,B |
|
DE5B |
LD (view_x),A |
|
DE5E |
CP $E9 |
|
DE60 |
JR NC,scroll_landscape_4 |
|
DE62 |
CP $07 |
|
DE64 |
JR NC,scroll_landscape_5 |
|
DE66 |
LD A,$E8 |
|
DE68 |
LD (view_x),A |
|
DE6B |
LD A,$20 |
|
DE6D |
LD (origin_x),A |
|
DE70 |
DEC L |
|
DE71 |
INC C |
|
DE72 |
JP scroll_landscape_3 |
| scroll_landscape_4 |
DE75 |
LD A,$08 |
|
DE77 |
LD (view_x),A |
|
DE7A |
XOR A |
|
DE7B |
LD (origin_x),A |
|
DE7E |
INC L |
|
DE7F |
INC C |
|
DE80 |
JP scroll_landscape_3 |
| scroll_landscape_5 |
DE83 |
LD A,C |
|
DE84 |
LD (record_ground),A |
|
DE87 |
AND A |
|
DE88 |
CALL NZ,load_map_window |
|
DE8B |
CALL set_landscape_colours |
|
DE8E |
LD DE,map_window_tiles |
|
DE91 |
LD (map_window_pointer),DE |
|
DE95 |
LD A,(scroll_down) |
|
DE98 |
BIT 7,A |
|
DE9A |
CALL NZ,update_ground_objects |
|
DE9D |
LD A,(view_row) |
|
DEA0 |
CP $03 |
|
DEA2 |
JR NC,scroll_landscape_6 |
|
DEA4 |
XOR A |
|
DEA5 |
LD (loader_entry),A |
|
DEA8 |
LD (ground_cell_bottom_left),A |
|
DEAB |
LD (ground_cell_top_right),A |
|
DEAE |
LD (ground_cell_bottom_right),A |
|
DEB1 |
JR scroll_landscape_7 |
| scroll_landscape_6 |
DEB3 |
CALL draw_landscape |
| scroll_landscape_7 |
DEB6 |
LD A,(scroll_down) |
|
DEB9 |
BIT 7,A |
|
DEBB |
CALL Z,update_ground_objects |
|
DEBE |
CALL draw_beams |
|
DEC1 |
CALL draw_stars |
|
DEC4 |
LD A,$FF |
|
DEC6 |
LD ($56E1),A |
|
DEC9 |
LD ($55E1),A |
|
DECC |
LD ($52E1),A |
|
DECF |
LD ($51E1),A |
|
DED2 |
LD A,(map_rebuild) |
|
DED5 |
AND A |
|
DED6 |
JP Z,draw_ship |
|
DED9 |
JP fly_in_step |