User Tag List

Results 1 to 8 of 8

Thread: Import ZASM: Leading Spaces

  1. #1
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.72%

    Not A Bug Import ZASM: Leading Spaces

    This has been an issue for ages, and we should fix it.

    When loading a ZASM script, any instruction that does not begin with a leading space (or a leading tab) will halt the import and generate an error.



    Note than I import ZASM for one of three main reasons:
    1. When a quester provides a quest in which they need me to add an ffc, but they do not apply, or they do not have all of the ZScript files.
    2. When recompiling requires rearranging headers, and importing precompiled ZASM is easier.
    3. When I wish to 'idiot-proof' adding a script; usually ffcs.

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    I don't think that's a bug... just part of the ZASM spec. Every line begins with a label and a space, and if there is no label, there must still be a space.

  3. #3
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.72%
    Quote Originally Posted by DarkDragon View Post
    I don't think that's a bug... just part of the ZASM spec. Every line begins with a label and a space, and if there is no label, there must still be a space.
    Are you saying that the spec is:

    LABEL SPACE INSTRUCTION <VALUES>

    ?

    Or by label, do you mean instruction? If so, then this is still odd, because it does not see the first instruction without a leading space. CR should e treated as a space in the spec, too, FWIW.

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    The former. The label is the string used for absolute jumps etc.

  5. #5
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.72%
    I see. There is nothing in place to check if a potential label is identical to a instruction ID, and to skip ahead if it encounters an instruction with no label or leading space. Lovely.

  6. #6
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,228
    Mentioned
    70 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    11,025
    Level
    31
    vBActivity - Bars
    Lv. Percent
    8.17%
    Nope. The ZASM parser could use a rewrite. But to be honest it's extremely low priority, as long as it works for the ZScript compiler output.

  7. #7
    Here lies mero. Died by his own dumbassitude.
    Join Date
    May 2011
    Posts
    929
    Mentioned
    102 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,527
    Level
    23
    vBActivity - Bars
    Lv. Percent
    13.96%
    Wrong @DarkDragon
    The whole engine could use a rewrite.
    We're all just to damn lazy to actually do something about it... Hence why it can't actually happen.

  8. #8
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,760
    Level
    21
    vBActivity - Bars
    Lv. Percent
    68.72%
    Quote Originally Posted by Tamamo View Post
    Wrong @DarkDragon
    The whole engine could use a rewrite.
    We're all just to damn lazy to actually do something about it... Hence why it can't actually happen.
    (Emphasis, mine.)
    This is, essentially true. (We're doing that in little bits, as needed, or as we feel like doing it.)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social