Yeah, sorry, I didn't really know what to call this post, but it envolves NESHLA, so I just called it NESHLA question. I just recently switched to NESHLA, because Nesasm is a POS compared to it. It came with some example source code, and I've just been messing around with stuff seeing what it does, because Neshla codes way different from most 6502 assemblers, and I was curious to see what everything did. Here is a peice of code I have here:
It displays 32 of this one tile on top, because the US NES's skip a line of tiles, which is dumb. I am trying to figure out a way to skip the 1st tile, and then display the other 31 tiles. Any NESHLA users out there know how to do this? I doubt it, but thanks.
Code:
byte setamt[] = {0,0,0,0,0,0,0,146}
byte setamt1[] = {0,0,0,0,0,0,0,145}
function vram_init()
{
vram_set_address_i(PAL_ADDRESS)
vram_write(#0x3F)
vram_write(#0x38)
vram_write(#0x18)
vram_write(#0x0F)
vram_set_address_i(NAME_TABLE_0_ADDRESS)
lda #0
ldy #8 // 1024 bytes
do {
lda setamt-1,y
ldx #64
do {
vram_write_a()
dex
} while(not zero)
dey
} while(not zero)
vram_write_string_inl(NAME_TABLE_0_ADDRESS+0x40, strTitle)
vram_clear_address()
vram_set_address_i(NAME_TABLE_0_ADDRESS)
lda #0
ldy #8 // 1024 bytes
do {
lda setamt1-1,y
ldx #64
do {
vram_write_a()
dex
} while(not zero)
dey
} while(not zero)
vram_write_string_inl(NAME_TABLE_0_ADDRESS+0x52, strTitle)
vram_clear_address()
}
byte setamt1[] = {0,0,0,0,0,0,0,145}
function vram_init()
{
vram_set_address_i(PAL_ADDRESS)
vram_write(#0x3F)
vram_write(#0x38)
vram_write(#0x18)
vram_write(#0x0F)
vram_set_address_i(NAME_TABLE_0_ADDRESS)
lda #0
ldy #8 // 1024 bytes
do {
lda setamt-1,y
ldx #64
do {
vram_write_a()
dex
} while(not zero)
dey
} while(not zero)
vram_write_string_inl(NAME_TABLE_0_ADDRESS+0x40, strTitle)
vram_clear_address()
vram_set_address_i(NAME_TABLE_0_ADDRESS)
lda #0
ldy #8 // 1024 bytes
do {
lda setamt1-1,y
ldx #64
do {
vram_write_a()
dex
} while(not zero)
dey
} while(not zero)
vram_write_string_inl(NAME_TABLE_0_ADDRESS+0x52, strTitle)
vram_clear_address()
}
It displays 32 of this one tile on top, because the US NES's skip a line of tiles, which is dumb. I am trying to figure out a way to skip the 1st tile, and then display the other 31 tiles. Any NESHLA users out there know how to do this? I doubt it, but thanks.