Search found 38 matches

by timschuerewegen
Thu Oct 29, 2020 10:34 am
Forum: NES Hardware and Flash Equipment
Topic: NES Maker (for VTxx machines)
Replies: 55
Views: 21821

Re: NES Maker (for VTxx machines)

kludge wrote:
Thu Oct 29, 2020 10:24 am
Is NES Maker supposed to create a *.bin.nes file when clicking "Make"? How many bytes should I strip from the head of the file to get to the data to be programmed? :D #n00b
Oops. "Make" no longer generates a file. I will fix it right now.

EDIT: fixed
by timschuerewegen
Wed Oct 28, 2020 11:35 pm
Forum: NES Hardware and Flash Equipment
Topic: NES Maker (for VTxx machines)
Replies: 55
Views: 21821

Re: NES Maker (for VTxx machines)

V1.8.0 (added support for Gaming Tech CT-885)
by timschuerewegen
Wed Oct 28, 2020 12:39 am
Forum: NES Hardware and Flash Equipment
Topic: NES Maker (for VTxx machines)
Replies: 55
Views: 21821

Re: NES Maker (for VTxx machines)

I found a "Gaming Tech CT-885" 200 in 1 at my local grocery store and brought it home. It's almost certainly a rebranded Cheertone CT-885 . It looks to be a NES on a chip solution with a 8 MB 25Q64C serial eeprom. Would it be possible to add support for it? Or maybe it works already? Can you post a...
by timschuerewegen
Thu Oct 15, 2020 6:45 am
Forum: NES Hardware and Flash Equipment
Topic: NES Maker (for VTxx machines)
Replies: 55
Views: 21821

Re: NES Maker (for VTxx machines)

mrrepel wrote:
Thu Oct 15, 2020 6:35 am
Same with the sprites, they come out of the pipes. Not a big problem, games are still playabe. (White 240in1)
Yes, you are right, I never noticed this before.

Image
by timschuerewegen
Sun Oct 11, 2020 11:49 pm
Forum: NES Hardware and Flash Equipment
Topic: NES Maker (for VTxx machines)
Replies: 55
Views: 21821

Re: NES Maker (for VTxx machines)

mrrepel wrote:
Sun Oct 11, 2020 9:10 am
I've installed nintendulator and when i start the ROM i get "Selected ROM has no CH ROM or CH RAM". If i load the ROM directly from source it runs in Nintendulator.
Nintendulator != NintendulatorNRS
by timschuerewegen
Fri Aug 14, 2020 1:46 pm
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

#include <lazynes.h> #include <string.h> void draw_text_1(ubyte x, ubyte y, const char *text) { uword addr = lnNameTab0 + (y * 32) + x; lnPush(addr, strlen(text), text); } void draw_text_2(ubyte x, ubyte y, const char *text) { lnPush(lnNameTab0 + (y * 32) + x, strlen(text), text); } int main() { st...
by timschuerewegen
Wed Aug 12, 2020 1:37 pm
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

vbc wrote:
Wed Aug 12, 2020 1:07 pm
No, DATA2 is defined as an array of pointers to constant char, not an array of constant pointers to char. This should work:

Code: Select all

const unsigned char *const DATA2[] =
{
	DATA1, DATA1, DATA1, DATA1
};
Doh! Thanks (and sorry). I learned something new today :)
by timschuerewegen
Wed Aug 12, 2020 10:54 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

const unsigned char DATA1[] = { 0x12, 0x34 }; const unsigned char *DATA2[] = { DATA1, DATA1, DATA1, DATA1 }; compiles to ... global _DATA1 section rodata _DATA1: byte 18 byte 52 global _DATA2 section data _DATA2: word _DATA1 word _DATA1 word _DATA1 word _DATA1 ... DATA1 => section rodata (ok) DATA2...
by timschuerewegen
Sun Aug 09, 2020 2:44 pm
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

A typo in the const-memcpy inlining optimization. Should be fixed in the new update I have uploaded. Thanks. Seems to work. "Large binary data" meaning contiguous blocks >64KB? You probably will run into trouble if you are creating those blocks with vasm6502. If you do not want to split the data in...
by timschuerewegen
Sat Aug 08, 2020 2:13 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

lazyhello_chars_1_byte.zip ... vasm vobj output module 0.9b (c) 2002-2018 Volker Barthelmann chars(acrwx1): 1 byte ... It should be 65537 bytes. Where did the other 64K go? :) Also in config\nrom256v there is ... -asv=vasm6502_oldstyle -nowarn=62 -Fvobj -opt-branch -v %s -o %s ... but -v is not a v...
by timschuerewegen
Wed Aug 05, 2020 2:45 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

Found another bug :) #include <lazynes.h> #define IO8(addr) (*(volatile ubyte *)(addr)) void test(const ubyte *data) { ubyte x = 0; IO8(0x484F) = 0xAA; IO8(0x4830+x) = data[0]; IO8(0x4831+x) = data[1]; IO8(0x4832+x) = data[2]; IO8(0x484F) = 0xBB; } int main() { static const ubyte DATA[] = { 1, 2, 3 ...
by timschuerewegen
Tue Aug 04, 2020 8:56 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

Seems there was a code path in an optimization that did not handle absolute addresses correctly. I have updated the files. I think that should fix it (although I could not reproduce the randomness on Linux). ... That should have been the same bug. ... This was a case of incorrectly eliminating a cm...
by timschuerewegen
Mon Aug 03, 2020 12:23 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

#include <lazynes.h> #define IO8(addr) (*(volatile ubyte *)(addr)) int main() { IO8(0x4FF5) = 0x00; while (IO8(0x4FF5) == 0x00); return 0; } vc +nrom256v -+ -O3 main.c -o main.nes => vbcc6502 -I%VBCC%/targets/6502-nes/include -quiet -mainargs -cmd= "C:\Users\Tim\AppData\Local\Temp\vbcc068e" -o= "C:...
by timschuerewegen
Mon Aug 03, 2020 12:07 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

Code: Select all

#include <lazynes.h>

int main()
{
	const ubyte DATA[] = { 1, 2, 3, 4 };
	memcpy((void *)0x4000, DATA, 2);
	return 0;
}
vc +nrom256v -+ -O3 main.c -o main.nes
=> >EOF error 158 in line 20 of "main.c": internal error 0 in line 776 of file opt.c !! aborting...
by timschuerewegen
Sat Aug 01, 2020 9:08 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 164
Views: 39631

Re: VBCC Optimizing C-compiler now supports NES

void wait() { __asm(" ldx #$10"); __asm(".1:"); __asm(" dex"); __asm(" bne .1"); } int main() { wait(); return 0; } vc +nrom256v -+ -O3 main.c -o main.nes => ok vc +nrom256v -+ -O0 main.c -o main.nes => error 3005: reloc type 2, size 8, mask 0xffffffff (symbol l14 1 + 0xffffffff) not supported