+ Reply to Thread
Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 41
Like Tree1Likes

Thread: The "Foxy" CPU - Part 2

  1. #31
    Wire Noob Scooper's Avatar
    Join Date
    Jul 2009
    Posts
    2

    Default Re: The "Foxy" CPU - Part 2

    Just 2 small things to point out in this tutorial:

    For the Address Bus section:

    Quote Originally Posted by -=Fox=- View Post
    Memory 1
    Offset: 0
    Size: 7

    Memory 2
    Offset: 8
    Size: 7

    Memory 3
    Offset: 15
    Size: 128
    Shouldn't it be like this?

    Memory 1
    Offset: 0
    Size: 7

    Memory 2
    Offset: 7
    Size: 7

    Memory 3
    Offset: 14
    Size: 128

    You do it like this all over, except for the Memory 2 in the first example. ^_^ And the offset in Memory 3 becomes 'incorrect' when having wrong offset in Memory 2.

    I figure it wouldn't create any problems doing it like in your example, it would just skip a 'Cell'.


    And in the first "transfer data" example, you have this:
    Code:
     mov #eax,#ebx  //transfers the byte at 5000 to 65536 first run
    [Instruction TO,FROM]
    Wouldn't this result in the opposite of what you're trying to do? ebx = 65536, eax = 5000. So, the byte at 65536 TO 5000.

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

    Default Re: The "Foxy" CPU - Part 2

    Ah! Ok, I'll adjust it as soon as I can get to it.
    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

  3. #33
    Wire Noob robertark's Avatar
    Join Date
    Jun 2007
    Location
    Northwest Arkansas
    Posts
    28

    Default Re: The "Foxy" CPU - Part 2

    Awesome guide so far

    You're missing the CD Ray for high speed devices, though. I've accomplished the part of reading/writing to a CD with E2. Now its time to conquer the daunting task of doing the same thing but with ASM o,0

    *sigh* This is going to take a while to soak in. Bedtime
    "Knowledge is power, and without power you're nobody." -Self



  4. #34
    Official Bastard of Wire Jat Goodwin's Avatar
    Join Date
    Aug 2008
    Location
    Colorado Springs
    Posts
    2,771

    Default Re: The "Foxy" CPU - Part 2

    Quote Originally Posted by robertark View Post
    Awesome guide so far

    You're missing the CD Ray for high speed devices, though. I've accomplished the part of reading/writing to a CD with E2. Now its time to conquer the daunting task of doing the same thing but with ASM o,0

    *sigh* This is going to take a while to soak in. Bedtime
    It's actually really easy, Very similar to writing to memory.
    Ö͎̗̫̙̝̹͓̤̙́ͣͤ̈́̋̽̋͜f̺̦̠̻̜̼̮͓̖́̓̄̿̓̌̓̍̔f̵̳̻̜̹̤̱̊͒ͤ͌ ̅ͭͮ̾͟i̗͖̎͗̇ͯ̈̀̌̽c̯̮̉ͮ̾͟͡i̵̺̻̠̘̤̫͕ͯͭ̅͊ͤͦͧa̷͇̖̲ͥ͗ͪ̎ͤ ̽̾ͫl̶̈́̉̉͂̿̎ͯͥ̐҉̗͙̦̻̪ ̪̻͕̗̝͈̘͓ͬ̋̕͟B͚̲̍͢ā̸̪͔͖̟ͫͨ͜͝s͈͔͔͖͇͍̗͛ͯ̑̂͟t̮̤̬̩̅ͧ̎͑͗ ̃̕͟a̸̧̻̖̘̞̪̲͈͕̲͊ͭͪ͆̉r̯̩̮̬̥̤̗̙̃͌̑͊͢͞ď̠̦̲̥͢͡ ̵̶̢̱̲̺͈̘̳͕ͤͅo̯̞̙̦͖̪̽ͩ͊ͅf̵̦͈̣͙̰̎͋̿́ͅ ̛͕̹̫̰̱̾̓ͪ̌̽̊͘͡W̨̬̲̤̖̽̿͛ͨ͛̃̎͐̏i̛̼̳̝̺̝̭͙͋̑͑ͬ͠ṙ̼͔̪ͯͨͭ ̕e̸̗͕̰̒̃ͩͬ̾͆́ͅͅ

    I Require More Minions! Join us on the IRC !
    List of Reasons to idle on the IRC: Wire QDB

  5. #35
    Wire Noob robertark's Avatar
    Join Date
    Jun 2007
    Location
    Northwest Arkansas
    Posts
    28

    Default Re: The "Foxy" CPU - Part 2

    Quote Originally Posted by Jat Goodwin View Post
    It's actually really easy, Very similar to writing to memory.
    Gotchya, thanks. I accomplished reading/writing to a CD with E2. Also includes auto-track detection (Starting track/ending track number)

    Thinking of releasing it to everyone shortly, once I fix minor flaws (such as adding if(first() | duped()) to some e2 chips)

    Doing this in CPU might be a bit over my head, so I'm just going to give myself a for doing this in e2
    "Knowledge is power, and without power you're nobody." -Self



  6. #36
    Wire Noob Vinkel's Avatar
    Join Date
    Jun 2010
    Posts
    9

    Default Re: The "Foxy" CPU - Part 2

    A bit embarasing.. I've got troubles with the CPU again - I can't make it work with the console screen. Neither the intergrated "hello_world" or fox' example seems to be working with the console. I've wired the CPU's memBus with the console's memory, and I have attached a clk-button for both devices... It doesn't work. Any ideas?


    EDIT:
    And YES, I have debugged it, and I had to change a colon in fox's example. But it sill doesn't work :/

  7. #37
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,661
    Blog Entries
    1

    Default Re: The "Foxy" CPU - Part 2

    Are you resetting the CPU?

    Try wiring a (Not) - Logic chip to the button and wire Reset on the CPU to the (Not) chip.
    So when the button is not pressed, you reset the CPU.

  8. #38
    Wire Noob Vinkel's Avatar
    Join Date
    Jun 2010
    Posts
    9

    Default Re: The "Foxy" CPU - Part 2

    Actually, that was EXACTLY what I had done Still not working...

  9. #39
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,661
    Blog Entries
    1

    Default Re: The "Foxy" CPU - Part 2

    Are you using a label? Are you jumping to the label?

    Paste the code for the CPU.

  10. #40
    Wire Noob Vinkel's Avatar
    Join Date
    Jun 2010
    Posts
    9

    Default Re: The "Foxy" CPU - Part 2

    It's not even my code....



    Data;

    Line1:
    db 'Hola craps it works!',0: //the String is here

    Code;

    Writestring: //EBX = address to write, EAX = the db line to write, then call it.
    cmp #eax,0 //check to see if we have reached end of string "0"
    je Writend
    mov #ebx,#eax //put the chars to console!
    inc ebx //Bump Console up one cell
    mov #ebx,999 //output char params
    inc ebx //next console cell
    inc eax //next value in the string
    jmp Writestring //keep writing till we hit a 0
    Writend:
    ret

    Main: //the above is a CALL, read the comments on how to use it.
    mov ebx,65536 //Location of where to write the string to.
    mov eax,Line1 //The address of where Line is located is put into eax
    call Writestring //Make the call!

+ Reply to Thread
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. The "Foxy" CPU.
    By -=Fox=- in forum CPU Tutorials
    Replies: 125
    Last Post: 07-01-2011, 10:19 PM
  2. Want to understand "interval" and "timer" in Expression 2
    By anthraxyhe in forum Installation and Malfunctions Support
    Replies: 25
    Last Post: 12-08-2009, 09:36 AM
  3. Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"
    By Xtensity in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 24
    Last Post: 09-20-2008, 08:46 AM
  4. Replies: 2
    Last Post: 04-01-2008, 12:53 PM
  5. Need the pack that has the "Generator" and "Razor" models...
    By Mr. Brightside in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 06-06-2007, 11:16 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