User Tag List

Results 1 to 8 of 8

Thread: Import ZASM: Leading Spaces

  1. #1
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    919
    Mentioned
    81 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,320
    Level
    18
    vBActivity - Bars
    Lv. Percent
    53.91%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    58.55%

    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.
    Last edited by ZoriaRPG; 05-29-2017 at 04:47 AM.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  2. #2
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,208
    Mentioned
    59 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,720
    Level
    30
    vBActivity - Bars
    Lv. Percent
    71.21%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    29.95%
    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
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    919
    Mentioned
    81 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,320
    Level
    18
    vBActivity - Bars
    Lv. Percent
    53.91%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    58.55%
    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.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  4. #4
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,208
    Mentioned
    59 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,720
    Level
    30
    vBActivity - Bars
    Lv. Percent
    71.21%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    29.95%
    The former. The label is the string used for absolute jumps etc.

  5. #5
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    919
    Mentioned
    81 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,320
    Level
    18
    vBActivity - Bars
    Lv. Percent
    53.91%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    58.55%
    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.


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

  6. #6
    Administrator DarkDragon's Avatar
    Join Date
    Oct 2001
    Posts
    6,208
    Mentioned
    59 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    10,720
    Level
    30
    vBActivity - Bars
    Lv. Percent
    71.21%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    29.95%
    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
    ZC Ambassador Tamamo's Avatar
    Join Date
    May 2011
    Location
    Kyoto
    Age
    28
    Posts
    797
    Mentioned
    92 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    5,009
    Level
    22
    vBActivity - Bars
    Lv. Percent
    17.44%
    Daily Activity
    0%
    Weekly Activity
    15.9%
    Monthly Activity
    70.89%
    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
    ZC Contirbutor ZoriaRPG's Avatar
    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    919
    Mentioned
    81 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    3,320
    Level
    18
    vBActivity - Bars
    Lv. Percent
    53.91%
    Daily Activity
    0%
    Weekly Activity
    0.99%
    Monthly Activity
    58.55%
    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.)


    Featured Scripts & Headers: RPG.zh ( v. a0.97.1 ) ( RPG.zh Thread ) | Zelda 3 Thief's Town Treasure Chest Minigame (ffc) | Bobomb (enemy)
    ZScript & ZC-Related Pastebin | Quests and ZScript Repository | ZC Dev & Betas | Latest ZC 2.54 Beta | YouTube Channel
    All of the code that I create and publish here is free for use, modification and distribution under the GPL v2.0, or v3.0 where applicable..

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