nullDC - DEV edition

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
111
DCEmu Junior
DCEmu Junior
Posts: 42
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Thu Jul 07, 2016 7:11 pm
Has thanked: 0
Been thanked: 6 times

nullDC - DEV edition

Post by 111 »

I made a simple modification to nullDC (intended for developers).
This version allows you to load elf\bin file via command line ("nulldc.exe <you_program>"), so you can easily integrate it in your toolchain.
You don't have to restart the emulator to run another elf\bin, just click "File->Open bin\elf".
It is also possible to run disc images, see RUN_CDI.bat

It may not look much, but considerable amount of time was put into it (nullDC sources are... not exactly easy to work with). I don't think I'm going to add anything else to it.
Not sure if anyone here needs it, but whatever.
Attachments
nullDC_DEV_r2.zip
(1006.52 KiB) Downloaded 150 times
Last edited by 111 on Tue Jan 07, 2020 4:06 pm, edited 3 times in total.
These users thanked the author 111 for the post:
Ian Robinson
mrneo240
DCEmu Freak
DCEmu Freak
Posts: 86
Joined: Wed Mar 14, 2018 12:22 am
Has thanked: 16 times
Been thanked: 19 times

Re: nullDC - DEV edition

Post by mrneo240 »

Source?
User avatar
Ian Robinson
DC Developer
DC Developer
Posts: 114
Joined: Mon Mar 11, 2019 7:12 am
Has thanked: 209 times
Been thanked: 41 times

Re: nullDC - DEV edition

Post by Ian Robinson »

111 wrote: Mon Jan 06, 2020 4:27 pm I made a simple modification to nullDC (intended for developers).
This version automatically loads your elf\bin file upon starting, so you don't have to manually click on "File->Open bin\elf". It looks for "program.elf" first, then "program.bin" (and exits if nothing is found), so put either of those in emulator's root directory. And just like the regular version, you don't have to restart the emulator to run another elf\bin, just click "System->Stop", then "File->Open bin\elf".

It may not look much, but considerable amount of time was put into it (nullDC sources are... not exactly easy to work with). Not sure if anyone here needs it, but whatever.
thank you that will be very helpful to me :)
111
DCEmu Junior
DCEmu Junior
Posts: 42
Joined: Thu Jul 07, 2016 7:11 pm
Has thanked: 0
Been thanked: 6 times

Re: nullDC - DEV edition

Post by 111 »

mrneo240 wrote: Tue Jan 07, 2020 12:28 amSource?
what source?
I just moved and commented some code parts, nothing new was added.
111
DCEmu Junior
DCEmu Junior
Posts: 42
Joined: Thu Jul 07, 2016 7:11 pm
Has thanked: 0
Been thanked: 6 times

Re: nullDC - DEV edition

Post by 111 »

r2 is done.
- added command line support.
- no need to click "System->Stop" to run another file, just use "File->Open bin\elf".
- fixed a crash if a command line argument is not an elf\bin file.

I've done what I wanted, so it's unlikely that anything else will be added to this.
These users thanked the author 111 for the post:
Ian Robinson
User avatar
Ian Robinson
DC Developer
DC Developer
Posts: 114
Joined: Mon Mar 11, 2019 7:12 am
Has thanked: 209 times
Been thanked: 41 times

Re: nullDC - DEV edition

Post by Ian Robinson »

111 wrote: Tue Jan 07, 2020 2:25 pm r2 is done.
- added command line support.
- no need to click "System->Stop" to run another file, just use "File->Open bin\elf".
- fixed a crash if a command line argument is not an elf\bin file.

I've done what I wanted, so it's unlikely that anything else will be added to this.
Thank you so much 111 this saves me heaps of time :)
Post Reply