| View previous topic :: View next topic |
| Author |
Message |
Dark Chazz
Joined: 04 Feb 2008 Posts: 35
|
Posted: Wed Feb 27, 2008 6:59 am Post subject: |
|
|
is there a way to install a rom image and a vga rom image like bochs does into psp DOSBox ?
I know its a silly question but hey!
it would be cool if you improve the performance crazyc , warcraft 2 is near to full speed ! |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Wed Feb 27, 2008 7:13 am Post subject: |
|
|
| Murdock wrote: | | crazyc wrote: | | Wally4000 wrote: | Just wondering if we'll see a speed improvement soon.
| I'm not working on anything that will improve the performance right now. |
That's VERY sad to hear ... why not? DosBox is sucha great piece of application. But why not improving the speed?
See this as a purley rethorical question since u haven't answered my previous ones, either ...
I think I'll just leave Dosbox aside for now ... I just hope u'll one day start caring about speed again. |
It is his choice, he is the dev! If you don't like it then code it yourself ;)
I was just hoping we'd see a speed improvement soon but netherless ah well. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Wed Feb 27, 2008 7:39 am Post subject: |
|
|
| Wally4000 wrote: |
It is his choice, he is the dev! If you don't like it then code it yourself ;)
I was just hoping we'd see a speed improvement soon but netherless ah well. | You all seem to forget, the PSP is simply not a high performance platform. Even if dosbox were perfect, it would be hard pressed to emulate a low clocked pentium (which was 2 issue, the PSP is 1). |
|
| Back to top |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Wed Feb 27, 2008 8:07 am Post subject: |
|
|
| crazyc wrote: | | Wally4000 wrote: |
It is his choice, he is the dev! If you don't like it then code it yourself ;)
I was just hoping we'd see a speed improvement soon but netherless ah well. | You all seem to forget, the PSP is simply not a high performance platform. Even if dosbox were perfect, it would be hard pressed to emulate a low clocked pentium (which was 2 issue, the PSP is 1). |
Nah I understand totally. Its just the fact that supaplex isnt full speed yet :P and that runs fine on a 386 |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 8:56 am Post subject: |
|
|
No luck using DOS. I imgmount'd and then booted DOS, but it just complains no fixed disks present.
Since I've got this thing building, is there anything you can recommend for me to fprintf somewhere that might illuminate this problem? |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Wed Feb 27, 2008 9:03 am Post subject: |
|
|
| mgrayson wrote: | No luck using DOS. I imgmount'd and then booted DOS, but it just complains no fixed disks present.
Since I've got this thing building, is there anything you can recommend for me to fprintf somewhere that might illuminate this problem? | Dosbox won't imgmount the filesystem on a disk that contains FAT32 (at least not yet, maybe I'll work on that), but pre-win95 osr2 DOS won't either. |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 9:52 am Post subject: |
|
|
| crazyc wrote: | | Dosbox won't imgmount the filesystem on a disk that contains FAT32 (at least not yet, maybe I'll work on that), but pre-win95 osr2 DOS won't either. |
Oh. What filesystem do you have on your memstick? |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 9:57 am Post subject: |
|
|
| Before you answer that, I'm going to assume it's FAT16, and further ask: if I just use the PSP to format my memstick, will it create a FAT16 filesystem? |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 10:01 am Post subject: |
|
|
| Actually, nevermind any of that, I've got a 1 Gb here with FAT16 already on it. I'll let you know how it goes. |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 10:28 am Post subject: |
|
|
| Using your build in 1.5 compatibility mode I was able to mount and view contents on my 1 Gb. Hurray. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Wed Feb 27, 2008 10:48 am Post subject: |
|
|
| mgrayson wrote: | | Using your build in 1.5 compatibility mode I was able to mount and view contents on my 1 Gb. Hurray. | Hopefully, the patch above will fix it with your build too. I need to find out why it doesn't work right in 3.71 and see how difficult FAT32 support will be. |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 10:48 am Post subject: |
|
|
| Does imgmounting of files no longer work? After I got the memstick itself mounting I tried to mount an image in the root directory (an image which works on regular dosbox and can be booted and then read normally in your version). It tells me it mounted successfully, but then it crashes when I try to view contents. |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 10:58 am Post subject: |
|
|
| crazyc wrote: | | Hopefully, the patch above will fix it with your build too. I need to find out why it doesn't work right in 3.71 and see how difficult FAT32 support will be. |
Rebuilding psptoolchain with your patch now. I'll let you know if that fixes my build as soon as I get it running. |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 11:33 am Post subject: |
|
|
| Is there a way to imgmount msstor0: without it being read only? |
|
| Back to top |
|
 |
mgrayson
Joined: 20 Feb 2008 Posts: 24
|
Posted: Wed Feb 27, 2008 1:11 pm Post subject: |
|
|
After building with the toolchain patch, I get a new error:
| Code: | Z:\>imgmount c msstor0: -t hdd -fs fat
Could not extract drive geometry from image.
User parameter -size bps,spc,hpc,cyl to specify the geometry. |
I should probably mention that I have downloaded your patch just a couple of days ago, so presumably I have the automatic drive geometry stuff. |
|
| Back to top |
|
 |
andrewwan1980
Joined: 05 Oct 2007 Posts: 38
|
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Fri Feb 29, 2008 10:49 pm Post subject: |
|
|
| crazyc wrote: | | You all seem to forget, the PSP is simply not a high performance platform. |
I do really regret to criticyze you, crazyc, because you seem to be a bright coder, but i completely disagree. You seem to forget that psp is one of the most powerful handeld in its size and weight category. Moreover, we still don't know how to exploit it completely. Someone said "There are not beautiful or ugly women, only more or less drunk men." Well, i say "there are no things like powerful or poor devices, only good or bad programmers". You seem to be a good one, so don't say things like this....i remember 10 years ago a swedish coding team made a 286 run a gouraud-shaded torus 30 fps without hw accelerations. Said so, i think i'm not able to code my own optimized dosbox from scratch, so i respect your choice, but... meditate people |
|
| Back to top |
|
 |
c2woody
Joined: 04 Jul 2007 Posts: 10
|
Posted: Fri Feb 29, 2008 11:05 pm Post subject: |
|
|
| Comparing gouraud-shading of triangles with a full system emulator is pretty dumb. And telling people that they are not good programmers disqualifies you for the second time. Feel free to take some old PC (x86 to simplify the task) like a 200mhz one, and try to get some system emulation like bochs or dosbox running on that at acceptable speed. Have fun. |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Sat Mar 01, 2008 7:54 pm Post subject: |
|
|
| c2woody wrote: | | Comparing gouraud-shading of triangles with a full system emulator is pretty dumb. And telling people that they are not good programmers disqualifies you for the second time. Feel free to take some old PC (x86 to simplify the task) like a 200mhz one, and try to get some system emulation like bochs or dosbox running on that at acceptable speed. Have fun. |
WTF??? I told crazyc IS a GOOD programmer and that i respect his choice...i was only afraid of him saying that improving is pointless, because this could discourage other talented programmers to contribute!!!! Was my english wrong or this is another case in wich people answer before reading?? Disqualifies me for the second time?????????? Are we chindren in the scolar age??? Take a long walk etc.. etc... |
|
| Back to top |
|
 |
c2woody
Joined: 04 Jul 2007 Posts: 10
|
Posted: Sun Mar 02, 2008 5:13 am Post subject: |
|
|
| Hehe. Congrats for the excessiveness of your questionmarks. |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Sun Mar 02, 2008 6:02 am Post subject: |
|
|
| Quote: | | i was only afraid of him saying that improving is pointless, because this could discourage other talented programmers to contribute! | Notice I said "even if it was perfect." Right now it tops out in the fast 286 range (planar vga tricks, OPL enabled) to the slow 486 range (without audio, no vga tricks). There is definitely room for improvement. (audio decoded on media engine etc..). |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Sun Mar 02, 2008 9:24 pm Post subject: |
|
|
| Uh...well, if you put it this way...thanks for punctualization, and sorry again, i'didn't mean to prosecute anyone. Good work |
|
| Back to top |
|
 |
andrewwan1980
Joined: 05 Oct 2007 Posts: 38
|
Posted: Tue Mar 11, 2008 2:23 am Post subject: |
|
|
| crazyc wrote: |
| Quote: | | This line only works if doom2 is an exe and not another batch file. (haven't tried using CALL command) | I don't know if this works now or not. Was that with 0.60?
| Quote: | | However, Turbo C++ 3.0 IDE crashes unpredictably in PSP DOSBox. I get messages like: Exit to error: CacheBlock overrun 2 written 4204 size 4096 | This is an unfortunate problem with the recompiler, it cannot know beforehand if a recompiled section will overrun it's bounds. All I can do is reduce the number of x86 ops recompiled per block.
|
Hmm, Turbo C++ 3.0 hasn't crashed recently. crazyc did you fix this cacheblock overrun?
PROB1: Some of the Turbo C++ 3.0 example projects compile.. but they have PATHing problems (and no it's nothing to do with the Directories PATH because the default settings work in native PC DOSBox). PSP DosBox has problem finding LIB files... and compiled EXEs... and I double-checked the Directories PATH settings and they are valid.... crazyc any idea?
PROB2: I just tried latest DOSBox and the "INPUTMAP EXEC indark2 16 1" still doesn't work. I get
Syntaxe : indark2 <numero d'etage> <numero de salle>
I tried:
INPUTMAP EXEC "indark2 16 1"
INPUTMAP EXEC indark2
but they don't work..
----------
TIP1: I know there's no official manual for DOSBox. The closest was Murdocks. crazyc, in your first initial post of this thread can you at least mention that INPUTMAP is a exe in Z:\ and for newbies to take a look at Z:\ for more commands. Am not sure whether Z:\ is initially mapped to PATH.. but when I remap it to C:\TC\BIN then the prince2_psp.bat doesn't work because it's naive...
PS: what is the names of the shoulder buttons? lshoulder rshoulder? |
|
| Back to top |
|
 |
andrewwan1980
Joined: 05 Oct 2007 Posts: 38
|
Posted: Thu Mar 13, 2008 2:54 am Post subject: |
|
|
The only way we can get hi-speed DOS is if the OS (eg.freedos) was rewritten for PSP architecture or even a linux distro compiled for PSP... rather than running off emulators/VMs (bochs, etc).
I assume DOSBox is emulating MS-DOS, running ontop of some layer which causes it to be slow. It would be good to completely miss out the emulation/VM layer all together. Or is DOSBox is actually a standalone non-emulator OS? Why slow on PSP? Is it because it's overcumbered with all the sound, and bells and whistles?
freedos can be installed natively on IA32 machines... so was wondering "what if" freedos was ported to PSP? so we don't have to run the OS in some emulator.. it would be running natively on PSP....
what do you think guys?
Last edited by andrewwan1980 on Thu Mar 13, 2008 3:51 am; edited 1 time in total |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Thu Mar 13, 2008 3:13 am Post subject: |
|
|
Sorry, but i think you should go look how an emulator works...it's not just the software platform....i don't give a s**t on a "dir" command compiled for PSP... a game -or, let's say an APP- is a compiled (i.e. in binary form) list of operands and operators. A VM is an application that translates these codes in the codes of the machine it's running on. An app could do quite EVERYTHING (access a device through a memory mapped area, raise an interrupt, wait for an hardware interrupt,..............................) Even if dosbox is claimed not to be an x86 emulator but a platform x86 apps can run on, it HAVE to rely on an emulation layer we cannot eliminate.
DosBox devs, correct me if i'm wrong.
jean |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Thu Mar 13, 2008 9:10 am Post subject: |
|
|
| andrewwan1980 wrote: | | Hmm, Turbo C++ 3.0 hasn't crashed recently. crazyc did you fix this cacheblock overrun? | I put a workaround in, but in certain circumstances, the problem will still happen.
| andrewwan1980 wrote: | | PROB1: Some of the Turbo C++ 3.0 example projects compile.. but they have PATHing problems (and no it's nothing to do with the Directories PATH because the default settings work in native PC DOSBox). PSP DosBox has problem finding LIB files... and compiled EXEs... and I double-checked the Directories PATH settings and they are valid.... crazyc any idea? | Path handling should be exactly the same as in PC Dosbox. Have you tried it on your PC?
| andrewwan1980 wrote: | PROB2: I just tried latest DOSBox and the "INPUTMAP EXEC indark2 16 1" still doesn't work. I get
Syntaxe : indark2 <numero d'etage> <numero de salle>
I tried:
INPUTMAP EXEC "indark2 16 1"
INPUTMAP EXEC indark2
but they don't work.. | I haven't had a chance to work on dosbox recently. I don't know when I'll have a chance to look at it.
| andrewwan1980 wrote: | ----------
TIP1: I know there's no official manual for DOSBox. The closest was Murdocks. crazyc, in your first initial post of this thread can you at least mention that INPUTMAP is a exe in Z:\ and for newbies to take a look at Z:\ for more commands. Am not sure whether Z:\ is initially mapped to PATH.. but when I remap it to C:\TC\BIN then the prince2_psp.bat doesn't work because it's naive... | This is really part of how dosbox works on all platforms. All builtin commands are on Z:\.
| andrewwan1980 wrote: | | PS: what is the names of the shoulder buttons? lshoulder rshoulder? | ltrigger / rtrigger
| Quote: | | freedos can be installed natively on IA32 machines... so was wondering "what if" freedos was ported to PSP? so we don't have to run the OS in some emulator.. it would be running natively on PSP.... | Actually dosbox does, in a way, work like this. System commands and os operations are done in mips native code, but without the x86 emulator, there isn't much that could be done with it. |
|
| Back to top |
|
 |
andrewwan1980
Joined: 05 Oct 2007 Posts: 38
|
Posted: Thu Mar 13, 2008 7:58 pm Post subject: |
|
|
| crazyc wrote: |
| andrewwan1980 wrote: | | PROB1: Some of the Turbo C++ 3.0 example projects compile.. but they have PATHing problems (and no it's nothing to do with the Directories PATH because the default settings work in native PC DOSBox). PSP DosBox has problem finding LIB files... and compiled EXEs... and I double-checked the Directories PATH settings and they are valid.... crazyc any idea? | Path handling should be exactly the same as in PC Dosbox. Have you tried it on your PC?
|
Yeah, it works fine on default install/settings from PC DOSBox. Am wondering whether it's something to do with forward slashes and backslashes? - EDIT/UPDATE: nope! forward & backslashes didn't make a difference :(
How can we debug, compare between PC DOSBox and PSP DOSBox? Such as memory, variable dumping? I just don't understand why Turbo C++ 3.0 can't find certain files...in PSP but can in PC.. both have same detault settings. |
|
| Back to top |
|
 |
ardatan
Joined: 12 Jan 2008 Posts: 44
|
Posted: Wed Mar 26, 2008 4:10 am Post subject: |
|
|
crazyc,
I succesfully built Dosbox-psp. But when i try it on psp, it gives error(8002013c). What should I do?
edit:
because of that, i rebuilt dosbox-psp but when i try to create with this link;
| Code: |
psp-gcc -L/usr/local/pspdev/psp/sdk/lib -o dosbox dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a -lm hardware/serialport/libserial.a p_sprint.o -lpspdebug -lpspgu -lpspctrl -lpspdisplay -lpspge -lpspsdk -lpsprtc -lpspaudio -lstdc++ -lpspirkeyb -lc -lpspnet -lpspnet_inet -lpsppower -lpsputility -lpspuser -lpspkernel -specs=/usr/local/pspdev/psp/sdk/lib/prxspecs -Wl,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx,-q && psp-fixup-imports.exe dosbox && pack-pbp EBOOT.PBP PARAM.SFO NULL NULL NULL NULL NULL dosbox.prx NULL
|
It gives error:
| Code: |
/usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/crt0_prx.o: In function
`_main':
/tmp/pspdev/pspsdk/src/startup/crt0_prx.c:91: undefined reference to `main'
collect2: ld returned 1 exit status
|
What should i do? _________________ I'm sorry for my bad English. |
|
| Back to top |
|
 |
aTomIC
Joined: 28 Aug 2007 Posts: 35
|
Posted: Sat Apr 05, 2008 11:59 pm Post subject: |
|
|
CrazyC:
Do you have some news for us (status report)? _________________
 |
|
| Back to top |
|
 |
crazyc
Joined: 17 Jun 2005 Posts: 410
|
Posted: Sun Apr 06, 2008 1:11 am Post subject: |
|
|
| aTomIC wrote: | CrazyC:
Do you have some news for us (status report)? |
I've been rather busy, I don't know when I'll have time again to work on this. |
|
| Back to top |
|
 |
|