Announcement

Collapse
No announcement yet.

Heh, ASM5900 note...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Heh, ASM5900 note...

    Something I forgot to mention is this...something that was a bit confusing at first due to general lack of documentation. Keep in mind, I'm trying to keep this simple for everyone; most of it will go right under your head, heheh.

    When you're trying to assemble an ASM file (extension .asm) into an ELF, using asm5900.exe from the PS2Dev environment, you have to know the proper syntax. What I do, rather than using the command prompt (accessible by going through the Start Menu, choosing Run, typing cmd, and hitting Enter) is simply write a batch file (open Notepad, save it as extension .bat) with something like

    @echo off
    asm5900 YourASMFile.asm -o:YourELF.elf

    ...place a copy of asm5900.exe in the same folder as my ASM file and the new batch file, and double-click the batch file. Since you're not really using DOS, there are no 8:3 filename limitations. Call files whatever you want.
    I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

  • #2
    You could replace the .asm filename with say... %1 and then it'd take the filename as an argument (if I'm remembering right). Also, in general it's probably not a great idea to use spaces in filenames...

    Comment


    • #3
      Yeah, but if you have more than one .asm file in the same dir, that could pose a problem.

      Spaces could cause a problem at some later point, so listen to LMZ. And eat your vegetables.
      I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

      Comment


      • #4
        To avoid issues with spaces(in compatible programs), use the batch syntax:

        @echo off
        asm5900 "YourASMFile.asm" -o:YourELF.elf

        the quotes make it so weirdly named files can be read validly.

        (for a test, in a winxp system, open CMD, the type CD\, then type cd "Documents and Settings")
        This reality is mine. Go hallucinate your own.

        Comment


        • #5
          As far as spaces, we were referring to problems you'd encounter later on, for example running the ELF on a PS2.
          I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

          Comment


          • #6
            I was actually referring to both things, heh.

            And if I'm not totally insane, you could do something like...:

            @echo off
            asm5900 %1 -o:%2

            and then the command

            wtf.bat asmfile.asm elffile.elf

            Well, it might work. It's been a long time since I've tried anything of the sort.
            Last edited by LiquidManZero; 08-24-2006, 01:49:40 AM.

            Comment


            • #7
              Er, a note: You can type [cd documents and settings] without quotation marks in XP's command line. Not that that's an important note to make, but I hate leaving things incorrect, for fear that someone will go around thinking something that's wrong after reading it.
              Last edited by Lazy Bastard; 08-31-2006, 09:01:31 AM.
              I may be lazy, but I can...zzzZZZzzzZZZzzzZZZ...

              Comment

              Working...
              X