+ Reply to Thread
Page 11 of 15 FirstFirst ... 910111213 ... LastLast
Results 101 to 110 of 145

Thread: !!!OLD!!! ZCPU Documentation

  1. #101
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: Documentation

    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'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  2. #102
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: Documentation

    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

  3. #103
    Wire Noob quantumdude's Avatar
    Join Date
    Aug 2008
    Location
    USA
    Posts
    8

    Default Re: Documentation

    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.

  4. #104
    Wire Sofaking -=Fox=-'s Avatar
    Join Date
    Feb 2007
    Location
    Somewhere in my Mind...
    Posts
    1,846
    Blog Entries
    7

    Default Re: Documentation

    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

  5. #105
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: Documentation

    You can use 16384...49151 (program and stack get 16KB, data gets 32KB). Or you know... just use external RAM...
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  6. #106
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: Documentation

    bump with content
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  7. #107
    Wirererer Bean's Avatar
    Join Date
    Feb 2008
    Posts
    121

    Default Re: Documentation

    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?

  8. #108
    That furred thing Black Phoenix's Avatar
    Join Date
    Feb 2007
    Location
    Kyiv, Ukraine
    Posts
    3,565

    Default Re: Documentation

    Quote Originally Posted by Bean View Post
    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?
    I just suggested the way of using memory, you can use it as you wish. By default stack, code, and data reside in same 64KB of RAM (except in different ends)
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  9. #109
    Wirererer CCFreak2K's Avatar
    Join Date
    Apr 2007
    Posts
    111

    Default Re: Documentation

    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).

  10. #110
    Wire Noob quantumdude's Avatar
    Join Date
    Aug 2008
    Location
    USA
    Posts
    8

    Default Re: Documentation

    Quote Originally Posted by -=Fox=- View Post
    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?)
    HELLO!!!

    I forgot you can use 'in' and 'out'...
    However, afer rereading the documentation, it seems like I should be able to use port###...
    Even the expample elev.txt fails...
    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

+ Reply to Thread
Page 11 of 15 FirstFirst ... 910111213 ... LastLast

LinkBacks (?)

  1. 02-26-2010, 01:41 AM
  2. 01-27-2010, 06:21 PM
  3. 01-27-2010, 03:18 PM

Similar Threads

  1. !!!OLD!!! Documentation of hi-speed devices
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 98
    Last Post: 02-10-2011, 07:41 PM
  2. !!!OLD!!! ZGPU Documentation
    By Black Phoenix in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 38
    Last Post: 11-29-2010, 04:54 PM
  3. Expression Gate Documentation
    By Syranide in forum Finished contraptions
    Replies: 398
    Last Post: 01-21-2010, 10:27 PM
  4. Moongate Documentation
    By BlackNecro in forum Wiremod Addons & Coding
    Replies: 24
    Last Post: 04-22-2009, 01:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots