+ Reply to Thread
Results 1 to 6 of 6

Thread: CPU Errors Please Help

  1. #1
    Wire Amateur LфяÐ ZZ†'s Avatar
    Join Date
    Sep 2008
    Posts
    44

    Exclamation CPU Errors Please Help

    Hi.. i need some CPU help, i keep getting odd errors on a code im makeing
    i say odd because i have no idea why they are doing it
    it has been narrowed down to a Error 2 witch is End of Program and if you look at it it shouldn't end
    so if you guys see anything please tell me so i can get this on the road

    Also if i remove all other func's it says the error is in Draw:

    and incase you are wondering why i did the mov #1-10,0 its because i would get a 7.3 witch i have yet to fix would kinda help if the program kept running

    Code:
    mov #1337,65535
    add #1337,2042
    mov eax,#1337
    mov #eax,300000
    mov #0,10
    mov #1,536
    mov #2,0
    mov #3,0
    mov #4,0
    mov #5,0
    mov #6,0
    mov #7,0
    mov #8,0
    mov #9,0
    mov #10,0
    
    Main:
    mov eax,#1
    sub eax,1
    mov #1,eax
    call Change
    call Draw
    jmp Main
    
    Draw:
    mov eax,#1337
    mov #eax,300000
    mov ecx,#0
    mov eax,1
    jmp Draw1
    Draw1:
    mov ebx,#eax
    mov port2,ebx
    add ebx,65535
    mov port1,eax
    mov port0,ebx
    mov #ebx,200
    cmp eax,ecx
    je Rett
    inc eax
    jmp Draw1
    
    Change:
    mov eax,1
    mov ecx,#0
    jmp Change1
    Change1:
    mov ebx,eax
    inc eax
    mov edx,#eax
    mov #ebx,edx
    cmp eax,ecx
    je Rett
    jmp Change1
    
    Rett:
    ret
    ret
    jmp Rett

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

    Default Re: CPU Errors Please Help

    Maybe it would run if you didn't overwrite your program code. Remember, data and code are located in same memory area, and by "mov #eax,..." and "mov #0,..." you're overwriting it, rendering it useless.
    I'm a wire-crazy person with a tail.

    Take a daily journey into my brain

    D2K5

  3. #3
    Wire Sofaking Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    636

    Default Re: CPU Errors Please Help

    Starting writing from the top of the memory, dont overwrite the early address's as they hold the opcodes.

  4. #4
    Wire Amateur LфяÐ ZZ†'s Avatar
    Join Date
    Sep 2008
    Posts
    44

    Default Re: CPU Errors Please Help

    So.. To fix it don't start at 0 this is the 1st tiem i did that so it would explane it.. i norm just start in 1000's

  5. #5
    Wire Sofaking Whodunnit's Avatar
    Join Date
    Jan 2008
    Location
    New Zealand, Ackl
    Posts
    636

    Default Re: CPU Errors Please Help

    yeah, you are safe using a seperate ram chip or just starting somewhere far form either the code or stack.

  6. #6
    Wire Amateur LфяÐ ZZ†'s Avatar
    Join Date
    Sep 2008
    Posts
    44

    Default Re: CPU Errors Please Help

    **Droped**
    Last edited by LфяÐ ZZ†; 01-28-2009 at 02:01 AM.

+ Reply to Thread

Similar Threads

  1. Errors
    By Jesus in forum Installation and Malfunctions Support
    Replies: 7
    Last Post: 03-12-2009, 09:59 AM
  2. errors
    By tommydolla in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 07-19-2008, 07:21 PM
  3. Quite a few errors
    By turck3 in forum Bug Reports Archive
    Replies: 1
    Last Post: 02-12-2008, 09:00 PM
  4. Errors
    By Azu in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 09-12-2007, 03:24 PM

Tags for this Thread

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