User Tools

Site Tools


base:removing_the_top_bottom_border

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

base:removing_the_top_bottom_border [2015-04-17 04:33] (current)
Line 1: Line 1:
 +====== Opening the Top/Bottom borders ======
  
 +By HCL
 +
 +Try this.. There may be typos, i didn't assemble it myself.
 +
 +<​code>​
 +sei
 +
 +; First make sure the normal screen is shown.
 +
 +bit $d011
 +bpl *-3
 +bit $d011
 +bmi *-3
 +lda #$1b
 +sta $d011
 +
 +; For each frame, set screen-mode to 24 lines at y-position $f9 - $fa..
 +loop:
 +lda #$f9
 +cmp $d012
 +bne *-3
 +lda $d011
 +and #$f7
 +sta $d011
 +
 +; .. and below y-position $fc, set it back to 25 lines.
 +bit $d011
 +bpl *-3
 +ora #8
 +sta $d011
 +jmp loop
 +</​code>​
base/removing_the_top_bottom_border.txt ยท Last modified: 2015-04-17 04:33 (external edit)