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
Joined: Thu Jul 07, 2016 7:11 pm
Has liked: 0
Been liked: 5 times

nullDC - DEV edition

Post by 111 » Mon Jan 06, 2020 4:27 pm

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 22 times
Last edited by 111 on Tue Jan 07, 2020 4:06 pm, edited 3 times in total.
These users liked the author 111 for the post:
Ian Robinson
mrneo240
DCEmu Freak
DCEmu Freak
Posts: 73
Joined: Wed Mar 14, 2018 12:22 am
Has liked: 9 times
Been liked: 10 times

Re: nullDC - DEV edition

Post by mrneo240 » Tue Jan 07, 2020 12:28 am

Source?
User avatar
Ian Robinson
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 14
Joined: Mon Mar 11, 2019 7:12 am
Has liked: 17 times
Been liked: 1 time

Re: nullDC - DEV edition

Post by Ian Robinson » Tue Jan 07, 2020 1:06 am

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 liked: 0
Been liked: 5 times

Re: nullDC - DEV edition

Post by 111 » Tue Jan 07, 2020 4:25 am

mrneo240 wrote:
Tue Jan 07, 2020 12:28 am
Source?
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 liked: 0
Been liked: 5 times

Re: nullDC - DEV edition

Post by 111 » 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.
Post Reply