Prev: 68B7 Up: Map Next: 68E9
68C5: Copy bottom attribute row to row 1 and refill bottom
Copies the bottom attribute row to row 1, then fills the bottom row with either river (green) or bridge attributes depending on state_bridge_section. This leaves attribute row 0 unchanged, creating an 8-pixel blank zone at the top.
update_top_visible_row_and_refill_bottom 68C5 LD DE,$5820 Copy bottom attribute row to row 1 (screen_attributes_row_1).
68C8 LD BC,$0020
68CB LDIR
68CD LD A,($5F6C) If bridge section 1 or 2, jump to render bridge attributes.
68D0 CP $01
68D2 JP Z,render_bridge_attributes
68D5 CP $02
68D7 JP Z,render_bridge_attributes
This entry point is used by the routine at init_current_bridge.
fill_river_attributes 68DA LD DE,$5BDF Initialize bottom row fill with river attribute (green).
68DD LD A,$0C
68DF LD B,$20
fill_attribute_loop 68E1 LD (DE),A Store attribute, advance pointer, loop 32 times.
68E2 INC DE
68E3 DJNZ fill_attribute_loop
68E5 CALL spawn_objects_from_level_slot Process objects for new row.
68E8 RET
Prev: 68B7 Up: Map Next: 68E9