dosbox, now with 100% less drama
-
- Posts: 35
- Joined: Mon Feb 04, 2008 7:41 am
It is his choice, he is the dev! If you don't like it then code it yourself ;)Murdock wrote:That's VERY sad to hear ... why not? DosBox is sucha great piece of application. But why not improving the speed?crazyc wrote:I'm not working on anything that will improve the performance right now.Wally4000 wrote:Just wondering if we'll see a speed improvement soon.
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.
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).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.
Nah I understand totally. Its just the fact that supaplex isnt full speed yet :P and that runs fine on a 386crazyc wrote: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).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.
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.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?
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.
After building with the toolchain patch, I get a new error:
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.
Code: Select all
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.
-
- Posts: 38
- Joined: Fri Oct 05, 2007 1:31 am
crazyc (or whoever wrote the Targus keyboard lib):
I just seen AirTouch keyboards:
http://www.blueunplugged.com/p.aspx?p=115413
http://www.productclash.com/clashes/cam ... board.html
(loads being sold in Trocadero, London, UK)
and was wondering whether you will support AirTouch keyboards also? With AirTouch we can fold it into our pockets, where Targus keyboards can't.
Also, do you have a USB keyboard compatibility list for DOSBox PSP?
I just seen AirTouch keyboards:
http://www.blueunplugged.com/p.aspx?p=115413
http://www.productclash.com/clashes/cam ... board.html
(loads being sold in Trocadero, London, UK)
and was wondering whether you will support AirTouch keyboards also? With AirTouch we can fold it into our pockets, where Targus keyboards can't.
Also, do you have a USB keyboard compatibility list for DOSBox PSP?
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 peoplecrazyc wrote:You all seem to forget, the PSP is simply not a high performance platform.
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...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.
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..).i was only afraid of him saying that improving is pointless, because this could discourage other talented programmers to contribute!
-
- Posts: 38
- Joined: Fri Oct 05, 2007 1:31 am
Hmm, Turbo C++ 3.0 hasn't crashed recently. crazyc did you fix this cacheblock overrun?crazyc wrote:I don't know if this works now or not. Was that with 0.60?This line only works if doom2 is an exe and not another batch file. (haven't tried using CALL command)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.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
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?
-
- Posts: 38
- Joined: Fri Oct 05, 2007 1:31 am
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?
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.
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
DosBox devs, correct me if i'm wrong.
jean
I put a workaround in, but in certain circumstances, the problem will still happen.andrewwan1980 wrote:Hmm, Turbo C++ 3.0 hasn't crashed recently. crazyc did you fix this cacheblock overrun?
Path handling should be exactly the same as in PC Dosbox. Have you tried it on your PC?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?
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: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..
This is really part of how dosbox works on all platforms. All builtin commands are on Z:\.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...
ltrigger / rtriggerandrewwan1980 wrote:PS: what is the names of the shoulder buttons? lshoulder rshoulder?
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.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....
-
- Posts: 38
- Joined: Fri Oct 05, 2007 1:31 am
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 :(crazyc wrote:Path handling should be exactly the same as in PC Dosbox. Have you tried it on your PC?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?
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.
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;
It gives error:
What should i do?
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: Select all
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
Code: Select all
/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
I'm sorry for my bad English.