How do I log the m68k compiler error

Discussion in 'Discussion and Q&A Archive' started by Sonic master, Mar 27, 2010.

Thread Status:
Not open for further replies.
  1. Sonic master

    Sonic master Well-Known Member Member

    Joined:
    Mar 27, 2010
    Messages:
    303
    hello,


    I have been having some trouble with my hack of sonic


    I have been getting many errors after I added the spindash dust code but I can not read the error the AS compiler gives


    [​IMG]


    No one can read 91 errors in 1.25 seconds so it would help a lot.


    All help is appreciated
     
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    It appears that the file sonic1.p is missing. Since I don't use the AS disassembly and pretty much hate it as well, I'm not sure how to help else, but you said any help is appreciated. If I were you though, I would use the ASM68k version.
     
  3. Guest

    I agree on this. apparently whatever this sonic1.p file that is missing that selbi was talking about, I really don't know how I can help out on this since I never used that type of compiler before. the only thing that I can probably help on is that depending on what type of disassembly you have for sonic 1, I would suggest you use the ASM68K version just as selbi stated.
     
  4. Qjimbo

    Qjimbo Well-Known Member Member

    Joined:
    Feb 27, 2008
    Messages:
    850
    Location:
    Vancouver, BC
    There are a number of ways you can see all the errors. Instead of running the build.bat script just by double clicking, run the command prompt and use the cd command to change to the folder and then type build.bat and hit enter. You can also right click on build.bat and somewhere in the properties you can tell it not to close on exit.
     
  5. Sonic master

    Sonic master Well-Known Member Member

    Joined:
    Mar 27, 2010
    Messages:
    303
    Here is my current build.bat



    Code:
    @echo off
    
     REM include.exe sonic1.asm s1comb.asm
    
     
    
     REM ::: automatic recompression of data - disabled by default because it's slow
    
     REM ::: remove "REM" from the lines below to re-enable it
    
     REM derecmp.exe nc artnem_u artnem
    
     REM derecmp.exe kc artkos_u artkos
    
     REM derecmp.exe ec mapeni_u mapeni
    
     REM derecmp.exe ec map16_u map16
    
     REM derecmp.exe kc map256_u map256
    
     REM derecmp.exe ec sslay_u sslayout
    
     
    
     cls
    
     asw  -xx -c -A sonic1.asm
    
     p2bin sonic1.p s1built.bin -l 0 -r $-$
    
     rem rompad.exe s1built.bin 255 0
    
     fixheadr.exe s1built.bin
    So how do you

     
  6. Qjimbo

    Qjimbo Well-Known Member Member

    Joined:
    Feb 27, 2008
    Messages:
    850
    Location:
    Vancouver, BC
    Well if you're happy editing the bat file, just add another line at the bottom and put this there:



    Code:
    pause
    It should then wait for you to press any key before closing.
     
  7. Guest

    pretty much what qjimbo just said. thats how I was able to find any errors that needed to be fixed. If thats the case it should do the same for you hopefully.
     
  8. Sonic master

    Sonic master Well-Known Member Member

    Joined:
    Mar 27, 2010
    Messages:
    303
    Thank you worked perfectly!
     
  9. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    So well uh, what are the errors you have now?
     
  10. Sonic master

    Sonic master Well-Known Member Member

    Joined:
    Mar 27, 2010
    Messages:
    303
    There mostly just easy to fix out of range errors.


    I had a duplicate subroutine.And there are no more errors now!
     
    Last edited by a moderator: Mar 27, 2010
  11. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    You can use the ASM68k disassembly or view the source code of the guide.


    I'm sure of your sonic.p file es missing because too many errors
     
  12. Shadow Fire

    Shadow Fire Well-Known Member Member

    Joined:
    Aug 6, 2007
    Messages:
    303
    Another way to do it could also be like this:



    @echo off
    REM include.exe sonic1.asm s1comb.asm


    REM ::: automatic recompression of data - disabled by default because it's slow


    REM ::: remove "REM" from the lines below to re-enable it


    REM derecmp.exe nc artnem_u artnem


    REM derecmp.exe kc artkos_u artkos


    REM derecmp.exe ec mapeni_u mapeni


    REM derecmp.exe ec map16_u map16


    REM derecmp.exe kc map256_u map256


    REM derecmp.exe ec sslay_u sslayout


    cls


    asw -xx -c -A sonic1.asm


    p2bin sonic1.p s1built.bin>log.txt -l 0 -r $-$ >


    rem rompad.exe s1built.bin 255 0


    fixheadr.exe s1built.bin



    By adding >log.txt directly after s1built.bin, the assembler should spit out a text file that contains any errors. This file will always be generated, but will automatically be overwritten every time you build the ROM.


    I also don't mean to bandwagon, but I also suggest ASM68K. It's a lot easier to use in my opinion.
     
Thread Status:
Not open for further replies.