Search found 13 matches

by radishking27
Sun Mar 31, 2019 2:02 pm
Forum: Newbie Help Center
Topic: Cant Draw Background
Replies: 11
Views: 6758

Re: Cant Draw Background

Finally i fixed it. I tried dividing the background into 4 sections and writing the same background drawing code 3 more times but that still didnt work. Turns out i put the tile data in $2000 when im suppose to put it in $E000. and then it worked. Here what i did for the drawing code: LoadBackground...
by radishking27
Sun Mar 31, 2019 10:15 am
Forum: Newbie Help Center
Topic: Cant Draw Background
Replies: 11
Views: 6758

Re: Cant Draw Background

Well, you are copying only 256 bytes, which is equivalent to 8 name table rows (256 / 32 = 8). To copy the full 1024 bytes (960 NT bytes + 64 AT bytes) you need to use indexed indirect addressing, like advised above. That or use 4 loops like the one you're already using, each reading 1/4 of the dat...
by radishking27
Fri Mar 29, 2019 6:49 pm
Forum: Newbie Help Center
Topic: Cant Draw Background
Replies: 11
Views: 6758

Re: Cant Draw Background

Could I maybe utilize .nam name table files instead of using standard .db nametable setup like this? .db $24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24 .db $24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24,$24...
by radishking27
Fri Mar 29, 2019 9:52 am
Forum: Newbie Help Center
Topic: Cant Draw Background
Replies: 11
Views: 6758

Re: Cant Draw Background

You will want to set up a pointer in the zero page (reserve 2 bytes) and use Indirect Indexed mode. store the low byte of the address of data at pointer and high byte at pointer+1 LDA (pointer), y INY each loop. BNE loop. then outer loop, inc pointer+1, and INX till X=4 (CPX #4, BNE) 256*4 = 1024 I...
by radishking27
Thu Mar 28, 2019 9:05 pm
Forum: Newbie Help Center
Topic: Cant Draw Background
Replies: 11
Views: 6758

Cant Draw Background

I'm stumped on how to draw nametables right now. I've tried many codes by other people and so far i haven't a clue on how drawing background nametables work. Whenever i run any variety of background writing code it always comes up as the first sprite in the sprite table (FYI I'm following N.N.'s tut...
by radishking27
Thu Mar 28, 2019 8:18 pm
Forum: Newbie Help Center
Topic: NESASM3 can't recognize variables
Replies: 7
Views: 4580

Re: NESASM3 can't recognize variables

Memblers wrote:I tried assembling it over here, it is the spacing of the labels. Move those labels to the leftmost it and will accept them.

NESASM is always the best at giving unhelpful error messages..
That Worked! Thank you so Much!!
by radishking27
Thu Mar 28, 2019 4:21 pm
Forum: Newbie Help Center
Topic: NESASM3 can't recognize variables
Replies: 7
Views: 4580

Re: NESASM3 can't recognize variables

tokumaru wrote:Try removing any tabs or spaces before the labels. I'm not sure, but it's possible that NESASM only accepts labels starting at the far left of the document.
Yeah..... I tried to do that but that didn't work... FYI I fixed the JSR vblank problem so you dont need to worry bout that.
by radishking27
Thu Mar 28, 2019 3:17 pm
Forum: Newbie Help Center
Topic: NESASM3 can't recognize variables
Replies: 7
Views: 4580

Re: NESASM3 can't recognize variables

What do you mean "unrecognizable"? What's the exact error message you're getting? Sorry. Here's the nesasm log pass 1 #[1] main.asm 10 00:E000 gamestate .rs 1 Unknown instruction! 11 00:E000 ballx .rs 1 Unknown instruction! 12 00:E000 bally .rs 1 Unknown instruction! 13 00:E000 ballup .rs 1 Unknown...
by radishking27
Thu Mar 28, 2019 1:55 pm
Forum: Newbie Help Center
Topic: NESASM3 can't recognize variables
Replies: 7
Views: 4580

NESASM3 can't recognize variables

I'm following the Nerdy Nights tutorials and i'm unable to compile it together. Specifically, the variable/(.rsset) segment is unrecognizable. Here's my code. .inesprg 1 ; 1x 16KB PRG code .ineschr 1 ; 1x 8KB CHR data .inesmap 0 ; mapper 0 = NROM, no bank swapping .inesmir 1 ; background mirroring ;...
by radishking27
Mon Mar 25, 2019 7:28 pm
Forum: Newbie Help Center
Topic: Trouble with nes.lib
Replies: 4
Views: 4853

Re: Trouble with nes.lib

My guess would be that alter ago, since it's was released a long time ago, is using a version of neslib compiled with a older version of cc65. Since there is a good chance that NESICIDE is using a more recent version, you will need to compile neslib yourself. I remember having such issues at first ...
by radishking27
Mon Mar 25, 2019 6:33 pm
Forum: Newbie Help Center
Topic: Trouble with nes.lib
Replies: 4
Views: 4853

Trouble with nes.lib

I'm in NESICIDE and i'm trying to test-compile Alter Ego but the nes.lib, according to the log, says the add.o is at a different version or something. I tried downloading a new library but now the error comes up as: ld65: Error: Wrong data version in 'nes.lib' If anyone knows how to deal with this, ...
by radishking27
Mon Mar 25, 2019 1:08 pm
Forum: Newbie Help Center
Topic: Need help with ld65 compiler
Replies: 5
Views: 4987

Re: Need help with ld65 compiler

You sure that .cfg file you posted is right? It says the error is on line 101, but you only posted 70 lines. sorry here's the updated config. This is where the extra config lines went. MEMORY { # First 28 bytes of the zero page are used by NES library ZP: start = $28, size = $d8, type = rw, define ...
by radishking27
Mon Mar 25, 2019 11:23 am
Forum: Newbie Help Center
Topic: Need help with ld65 compiler
Replies: 5
Views: 4987

Need help with ld65 compiler

So, i'm new to the NES development culture, I got the basic jest of how to code in assembly, I installed nesicide, but the only thing that's keeping me from developing is an error in the ld65 compiler. The compiling log says the point of error is from the linker config for ld65. Here's the code. MEM...