Thats good, I'll try and start one soon, but I need to read both of the tutorials a couple more times![]()
Definitely.
Check out BlackFOX for example.
I'm also currently working on my own at the moment, but gonna spend a couple months continually adding to it.
Thats good, I'll try and start one soon, but I need to read both of the tutorials a couple more times![]()
I throw
Could you show me how can I do thread switching on a CPU?
It would appear that during a NMI all registers are pushed onto the stack, however when I try to pop or push to stack inside a NMI I get either an underflow or overflow =/
I'll show you how to do thread switching on CPU, I've added timers (for some reason they were not in main SVN, but they were in emufox CPU SVN) which allow you to run NMI interrupt every X ticks.
Ok, so I'm making a memory device using assembly that will store numbers, then can retrieve specified slots. I can't seem to get the retrieving part right though. If you can help at all it would be wonderful. Thanks!
Note: I put more information in the actual code...
Code:Data; // data section define offset, 5000 // defines the offset for saving data Code; // code section add eax, offset // makes eax the offset Btn1: // button 1 (The writing button) in ebx, port0 // button one is connected to port 0 cmp ebx, 1 // if button one is on then... je Write // jump to Write jne Btn2 // otherwise continue to check button 2 Btn2: // button 2 (the reading button) in ebx, port1 // button 2 is connected to port 1 cmp ebx, 1 // if button 2 is on then... je Read // jump to Read jne Btn1 // otherwise go back and check button 1 Write: // the Write section in edx, port2 // it takes in the number to write from port 2 mov #eax, edx // it writes that data to the register in ebx, port0 // it checks the button again cmp ebx, 1 // still checking... jne Debug // if the button is off, good! go to debug! je Write // if the button is still on, bad, go back and re-write // the info in the same slot Debug: // Debug inc eax // it moves eax to the next slot (ex. 5001) jmp Btn2 // it goes back and checks button 2, the loop starts over Read: // the Read section (this is what i need help with) // HOW CAN I RETRIEVE A CERTAIN SPECIFIED REGISTER? I JUST WANT // TO OUTPUT IT ON A SCREEN...
Extremly helpful text, you kept it simple as it's supposed to be. Two thumbs up.
We don't live in a world of shoulds.
I've pretty much quit working on this, HOWEVER that doesn't mean it will never be done. I've just run out of time. So if anyone Mod would like to correct mistakes and or bugs, go for it, I don't have the time to manage it at the moment. ^_^
BUT! It covers pretty much the basics of what you need to know to work the CPU. I might add more on the Second Foxy CPU tutorial which has more advanced stuff and other system that can be used by the CPU.
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
Quoting a huge post really emphasizes how you feel about this.
Bookmarks