|
Post by bjonte on Feb 2, 2017 19:14:47 GMT
Is there a way to dump the internal VDC registers to the screen in VICE somehow? I can only find how to dump VDC RAM or the I/O registers.
|
|
|
Post by Pyrofer on Feb 3, 2017 17:30:15 GMT
Don't think so. I made a little assembly routine to do it for me. If you are using the VDC for stuff you can dump to the 40 col screen.
|
|
|
Post by bjonte on Feb 3, 2017 19:02:59 GMT
I did a routine that copied it to main RAM, but I suspect I will be needing something less cumbersome in the future. I managed to compile a version of VICE so maybe I can hack some support for it in the monitor.
|
|
|
Post by mrbombermillzy on Feb 3, 2017 20:06:41 GMT
What do you want to use it for?
Writing the registers to the screen is fairly trivial using basic.
I wrote a little program which reads the registers to the screen and then gets any input data from the user to change the registers.
Let me know if you need more help.
|
|
|
Post by bjonte on Feb 3, 2017 21:52:56 GMT
I'm working on a game and I may end up writing something unexpected at some point. It would be handy to be able to check the values in the emulator.
|
|
|
Post by mrbombermillzy on Feb 4, 2017 11:07:59 GMT
That sounds interesting! Is the game C128 specific?
You could just write a little routine which displays/dumps the register values. In pretty much all cases the registers will only change when you change them, so wouldnt need to be checked.
If you are going to rely on an emulator, I would suggest testing code changes quite often on the real hardware. The most convenient way may be to get one of the SD card floppy drives.
|
|
|
Post by Pyrofer on Feb 4, 2017 12:07:05 GMT
Yeah, VICE sucks for the VDC. DO NOT rely on it. The VDC emulation is not reliable at all, you should test every register change on real hardware and test your code often. I have pretty much moved to doing all testing on real hardware for the 128, it's a lot of SD swapping but it's better than wasting ages on code that doesn't work on real hardware.
|
|
|
Post by bjonte on Feb 4, 2017 21:25:09 GMT
That sounds interesting! Is the game C128 specific? Yes, it will be a C128 exclusive title. Thanks for the heads-up about VICE compatibility. I have a serial port server running on my C128 that I can use to load programs from my development machine so I will luckily not need to swap SD-cards to do testing. It is more problematic with compatibility on NTSC and 16 kB VDC since I don't own such machines. I have friends with 16 kB VDC so that's covered but I will probably need to buy an NTSC machine at some point.
|
|
|
Post by Pyrofer on Feb 5, 2017 0:46:38 GMT
Oooh, can I have details on the Serial port setup you have please? I want to do something similar. I would love to hear how you do it.
|
|
|
Post by bjonte on Feb 5, 2017 7:01:29 GMT
Oooh, can I have details on the Serial port setup you have please? I want to do something similar. I would love to hear how you do it. Yes. It is a program that is started on the C128 that waits for serial communication. It accepts commands to transfer data or do file communication. I have a command line client program written in C++ that I run on my Linux PC to issue commands like this. serialclient load program.prg serialclient fcopy program 8: serialclient dcopy disk.d64 8: It uses a Swiftlink or GLink cartridge for the serial communication.
|
|