I did the SVN update, it updated two CPU files to rev. 660, but I still experience both issues (with iret and jmpf).
Thanks for the answers to my questions.
Comitted IRET fix, commited JMPF fix
CPU calls them with current CS. IRET does not restore old CS (interrupt does not change it). I might change this, I'll think (to absolute address). There is chance that it won't be changed - you have to setup local interrupt table for current CS, and probably just put callf's to global interrupt table you made before.
Yeah, DS is default segment. Interrupts again, dont do this.
I did the SVN update, it updated two CPU files to rev. 660, but I still experience both issues (with iret and jmpf).
Thanks for the answers to my questions.
My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
My tutorials: applyTorque - Quaternions - PID controllers
Some other things I made: FT Chip - RK4 Solar System
Great stuff, Black!
One problem though, everytime I upload a program that uses the IO ports, the CPU stops with Error:10. I've connected a Data Port to the IOBus of the CPU, but I'm still getting the error.
Does the program use something like:
in eax,port0
OR
in eax,1
The program might not be using ports correctly, so be sure to double check it ^_^
OH!
Does anyone know of a good memory position to use for scratch space, so I don't overwrite my program or interfere with stacks? (should I use the 32KB mark or can I use something like the 5KB mark?)
http://tiny.cc/OMFGWTFBBQ
Best People On Wiremod!
Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015
Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
My IQ is 123
You can use 16384...49151 (program and stack get 16KB, data gets 32KB). Or you know... just use external RAM...
bump with content
I'm a bit confused, memory starts at 0 and code+stack is the first 0-16384, after that it's free for use?
Up to 49151? Why not 65355?
You can put your stack anywhere you want; before you use the stack, set EBP and ESP to the highest point of memory that you want the stack to be (since it "grows down", i.e. ESP is decreased on each push).
Last edited by quantumdude; 09-28-2008 at 08:59 AM.
92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature.
98% of teens smoke, or have smoked before in their life. If you are part of the 2% that hasn't/doesn't, copy this into your sig.
iPhail
Bookmarks