VT03 4BPP Issues

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems. See the NESdev wiki for more information.

Moderator: Moderators

Post Reply
User avatar
freem
Posts: 176
Joined: Mon Oct 01, 2012 3:47 pm
Location: freemland (NTSC-U)
Contact:

VT03 4BPP Issues

Post by freem »

I've been attempting to make a small VT03 ROM that uses the 4BPP color modes without any luck.

The emulator I've been testing with is the 2020/05/17 release of NintendulatorNRS.

I thought it would've been as simple as...
  1. Writing the correct value ($86) to $2010 to enable 4BPP for BG/Sprites and New Color Mode
  2. Writing the LSB values of the palette starting at $3F00
  3. Writing the MSB values of the palette starting at $3F80
but that doesn't seem to be the case, as I get the standard NES palette setup.

I've tested this using an un-headered .bin file (with the CHR data followed by PRG), and a .nes file with the proper(?) NES 2.0 header (mapper 256, submapper 0, flags 7 having "Extended Console Type" set, header byte 0x13 set to 0x07).

Source code and binaries are included in the attached post. Any help (aside from "use the official VRT SDK") would be appreciated.
Attachments
vt03demo.zip
Source code (for asm6/asm6f) and binaries (.bin, .nes)
(12.83 KiB) Downloaded 205 times
User avatar
freem
Posts: 176
Joined: Mon Oct 01, 2012 3:47 pm
Location: freemland (NTSC-U)
Contact:

Re: VT03 4BPP Issues

Post by freem »

The timing is unintentional, but a year (and a day) later, I ended up figuring it out. It turns out the palette locations were different than what I was expecting.

Code: Select all

;-------+-------+-----------+--------------
;Pal-Lo |Pal-Hi | Pal Type  | Color Nums
;-------+-------+-----------+--------------
; $3F00 | $3F80 | BG pal 0  | colors 0-3
; $3F04 | $3F84 | BG pal 1  | colors 0-3
; $3F08 | $3F88 | BG pal 2  | colors 0-3
; $3F0C | $3F8C | BG pal 3  | colors 0-3
;-------+-------+-----------+--------------
; $3F10 | $3F90 | Spr pal 0 | colors 0-3
; $3F14 | $3F94 | Spr pal 1 | colors 0-3
; $3F18 | $3F98 | Spr pal 2 | colors 0-3
; $3F1C | $3F9C | Spr pal 3 | colors 0-3
;-------+-------+-----------+--------------
; $3F20 | $3FA0 | BG pal 0  | colors 4-7
; $3F24 | $3FA4 | BG pal 1  | colors 4-7
; $3F28 | $3FA8 | BG pal 2  | colors 4-7
; $3F2C | $3FAC | BG pal 3  | colors 4-7
;-------+-------+-----------+--------------
; $3F30 | $3FB0 | Spr pal 0 | colors 4-7
; $3F34 | $3FB4 | Spr pal 1 | colors 4-7
; $3F38 | $3FB8 | Spr pal 2 | colors 4-7
; $3F3C | $3FBC | Spr pal 3 | colors 4-7
;-------+-------+-----------+--------------
; $3F40 | $3FC0 | BG pal 0  | colors 8-11
; $3F44 | $3FC4 | BG pal 1  | colors 8-11
; $3F48 | $3FC8 | BG pal 2  | colors 8-11
; $3F4C | $3FCC | BG pal 3  | colors 8-11
;-------+-------+-----------+--------------
; $3F50 | $3FD0 | Spr pal 0 | colors 8-11
; $3F54 | $3FD4 | Spr pal 1 | colors 8-11
; $3F58 | $3FD8 | Spr pal 2 | colors 8-11
; $3F5C | $3FDC | Spr pal 3 | colors 8-11
;-------+-------+-----------+--------------
; $3F60 | $3FE0 | BG pal 0  | colors 12-15
; $3F64 | $3FE4 | BG pal 1  | colors 12-15
; $3F68 | $3FE8 | BG pal 2  | colors 12-15
; $3F6C | $3FEC | BG pal 3  | colors 12-15
;-------+-------+-----------+--------------
; $3F70 | $3FF0 | Spr pal 0 | colors 12-15
; $3F74 | $3FF4 | Spr pal 1 | colors 12-15
; $3F78 | $3FF8 | Spr pal 2 | colors 12-15
; $3F7C | $3FFC | Spr pal 3 | colors 12-15
;-------+-------+-----------+--------------
Post Reply