Skip to content

Commit

Permalink
PocketNES to Post-1985 safe area
Browse files Browse the repository at this point in the history
on suggestion from lidnariq, so as not to need to explain why
we're trusting some random emulator's visible area
  • Loading branch information
pinobatch committed Jan 4, 2023
1 parent 1db1b08 commit 06f8ca0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
5 changes: 3 additions & 2 deletions nes/src/overscan.s
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ restart:
palloop2:
ldy #$00
palloop:
lda gcbars_palette,y
lda safe_areas_palette,y
sta PPUDATA
iny
cpy #16
Expand Down Expand Up @@ -676,5 +676,6 @@ waitminusxy:
rts

.rodata
gcbars_palette:
safe_areas_palette:
; the duplicate $0F is for sprite 0
.byte $0F,$00,$10,$0F, $0F,$16,$26,$36, $0F,$28,$38,$30, $0F,$12,$22,$32
33 changes: 15 additions & 18 deletions nes/src/rectfiles.s
Original file line number Diff line number Diff line change
Expand Up @@ -443,57 +443,54 @@ mdfourier_15k_rects:
; Safe area consists of 3 files:
; - the main screen (Pat $0000, NT $2000)
; - the bottom half of the text (Pat $1000, NT $2000)
; - above and below the PocketNES safe area (Pat $0000, NT $2400)
; - above and below the post-1985 safe area (Pat $0000, NT $2400)
safearea_main_rects:
rf_rect 0, 0,256,240,$1C, RF_ROWXOR|RF_COLXOR ; background
rf_rect 48, 16,208,208,$00, 0 ; title safe cutout
rf_rect 24, 24,232,200,$00, 0
rf_rect 0, 0,256,240,$1C, RF_ROWXOR|RF_COLXOR ; border
rf_rect 16, 16,240,208,$16, RF_ROWXOR|RF_COLXOR ; inner area
rf_rect 24, 16,232,208,$00, 0 ; title safe cutout
rf_rect 16, 24,240,200,$00, 0
rf_rect 32, 40, 48, 56,$14, RF_ROWXOR|RF_COLXOR ; danger symbol
rf_rect 32, 88, 48,104,$14, RF_ROWXOR|RF_COLXOR ; action symbol
rf_rect 32,120, 48,136,$14, RF_ROWXOR|RF_COLXOR ; pnes symbol
rf_rect 32,160, 48,176,$14, RF_ROWXOR|RF_COLXOR ; title symbol
rf_rect 32,160, 48,176,$16, RF_ROWXOR|RF_COLXOR ; title symbol
.byte 0
rf_attr 0, 0,256,240, 3 ; pnes safe (most of screen)
rf_attr 16, 16,240,208, 0 ; title safe (inner rectangle)
rf_attr 32, 32, 48, 64, 1 ; danger symbol
rf_attr 32, 80, 48,112, 2 ; action symbol
rf_attr 32,112, 48,144, 3 ; pnes symbol
.byte 0
rf_label 53, 24, 2, 0
.byte "Safe Area on 5.37 MHz",0
rf_label 153, 24, 2, 0
.byte "NTSC VDPs",0
rf_label 76, 24, 2, 0
.byte "Safe Area on 60 Hz NES",0
rf_label 56, 40, 2, 0
.byte "Danger Zone",0
rf_label 56, 48, 2, 0
.byte "Top and bottom 8 lines",0
rf_label 56, 56, 2, 0
.byte "Most TVs hide all of",0
rf_label 146, 56, 2, 0
.byte "this. Keep NES",0
.byte "Most 60 Hz TVs hide",0
rf_label 147, 56, 2, 0
.byte "all of this. Keep",0
rf_label 56, 64, 2, 0
.byte "scroll seam artifacts here",0
rf_label 171, 64, 2, 0
.byte "if possible.",0
rf_label 56, 72, 2, 0
.byte "Later consoles don't even",0
rf_label 171, 72, 2, 0
.byte "generate this.",0
.byte "(Visible at 50 Hz)",0
rf_label 56, 88, 2, 0
.byte "Action Safe Area",0
rf_label 56, 96, 2, 0
.byte "256x224, (0, 8)-(255, 231)",0
rf_label 56,104, 2, 0
.byte "Most TVs show some of this.",0
rf_label 56,120, 2, 0
.byte "PocketNES Safe Area",0
.byte "Post-1985 Safe Area",0
rf_label 56,128, 2, 0
.byte "240x212, (8, 16)-(247, 227)",0
rf_label 56,136, 2, 0
.byte "Practically all TVs show this.",0
rf_label 186,136, 2, 0
.byte "Platforms,",0
rf_label 56,144, 2, 0
.byte "Platforms,",0
rf_label 104,144, 2, 0
.byte "pits, and indicators are fine.",0
.byte 0

Expand Down
Binary file modified nes/tilesets/stdtiles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 06f8ca0

Please sign in to comment.