User Tag List

Показано с 1 по 10 из 699

Тема: SjASMPlus от z00m

Комбинированный просмотр

Предыдущее сообщение Предыдущее сообщение   Следующее сообщение Следующее сообщение
  1. #1

    Регистрация
    10.05.2019
    Адрес
    Prague, Czech Republic
    Сообщений
    229
    Спасибо Благодарностей отдано 
    51
    Спасибо Благодарностей получено 
    103
    Поблагодарили
    77 сообщений
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от zebest Посмотреть сообщение
    Кстатида. про "END"
    Это теперь зарезервированное слово??
    It was always directive, documented as: http://z00m128.github.io/sjasmplus/d...on.html#po_end
    The assembler will stop at this point. The pseudo-op END does NOT work in the beginning of line (even with --dirbol).
    (it's more than 10 years old paragraph)

    But it didn't work as documented, so I fixed it around v1.11 or v1.12 to work as the docs describe.

    *Today* I'm not sure if that was the smartest idea, maybe I should have kept the dirEND() as it was, and change the documentation to describe what the code really does (was just setting "start" address for some other commands like savetap/savesna/...).

    в другом, хорошем, компиляторе - пофиг на расположение.
    Nice, so you can use whatever you like and you have options.
    But JFYI, if you are talking about https://github.com/sjasmplus/sjasmplus ... it has the same quote in the documentation. So if the END doesn't stop assembling in it, in my view it is a bug (I'm used to treat docs as source of truth, so for me it was clearly bug in the code, but as I wrote, with the experience I collected in recent months, I'm not that sure about it, changing the docs post-fact may be sometimes better solution, than "fixing bug" in the code).

    The examples you posted work as intended.
    (`END` at beginning of line is label, after whitespace it's keyword, the --dirbol does NOT enable END at beginning of line (fully fixed in 1.14.3) ... plus add the syntax ambiguity of sjasmplus, where every directive can be prefixed with single dot, so the same rules apply to ".END" string, beginning of line = local label, after white space = stopping assembler)
    Последний раз редактировалось Ped7g; 27.11.2019 в 14:08.

  2. #1
    С любовью к вам, Yandex.Direct
    Размещение рекламы на форуме способствует его дальнейшему развитию

  3. #2

    Регистрация
    01.03.2005
    Адрес
    Саранск
    Сообщений
    5,830
    Спасибо Благодарностей отдано 
    0
    Спасибо Благодарностей получено 
    247
    Поблагодарили
    106 сообщений
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от Ped7g Посмотреть сообщение
    It was always directive, documented as: http://z00m128.github.io/sjasmplus/d...on.html#po_end

    (it's more than 10 years old paragraph)

    But it didn't work as documented, so I fixed it around v1.11 or v1.12 to work as the docs describe.

    *Today* I'm not sure if that was the smartest idea, maybe I should have kept the dirEND() as it was, and change the documentation to describe what the code really does (was just setting "start" address for some other commands like savetap/savesna/...).
    By me you should just change the docs instead of changing the behavior, as in 10 years people have lot of source code and probably there are quite a lot of similar things, which make people frustrate on such trivial matter.
    Последний раз редактировалось Shadow Maker; 08.01.2020 в 18:26.
    Свирепый агрессивно-депрессивный мордовец!
    Не уверен - не напрягай!

    Не сдавайся. Дыши?

    Virtual TR-DOS

  4. #3

    Регистрация
    15.09.2019
    Адрес
    г. Челябинск
    Сообщений
    4
    Спасибо Благодарностей отдано 
    0
    Спасибо Благодарностей получено 
    1
    Поблагодарили
    1 сообщение
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от Shadow Maker Посмотреть сообщение


    I would rather write


    So I can easily change the variable name I pass instead of having to change all of them every time I want to change filename.
    Вот так можно:
    Код:
       define filename "test.tap"
    
       savetap filename, BASIC,"noAutorun",label,100  
       ....
    Железо: ZX Spectrum+ (issue 4S, issue 3B), ZX Spectrum +3, Harlequin 128K (issue 2D), ZX-HD, DivMMC Enjoy! Pro One, Вектор 06Ц, БК0010, БК0011М, Atari 65XE (mod 130XE),

  5. #4

    Регистрация
    01.03.2005
    Адрес
    Саранск
    Сообщений
    5,830
    Спасибо Благодарностей отдано 
    0
    Спасибо Благодарностей получено 
    247
    Поблагодарили
    106 сообщений
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от dlancer Посмотреть сообщение
    Вот так можно:
    Код:
       define filename "test.tap"
    
       savetap filename, BASIC,"noAutorun",label,100  
       ....
    Ясно, я что-то не подумал. Ок.
    Свирепый агрессивно-депрессивный мордовец!
    Не уверен - не напрягай!

    Не сдавайся. Дыши?

    Virtual TR-DOS

Информация о теме

Пользователи, просматривающие эту тему

Эту тему просматривают: 1 (пользователей: 0 , гостей: 1)

Похожие темы

  1. SjASMPlus Z80 кросс ассемблер
    от Aprisobal в разделе Программирование
    Ответов: 1663
    Последнее: 19.06.2021, 01:36
  2. Исходники TR-DOS для SjASMPlus
    от Keeper в разделе Программирование
    Ответов: 20
    Последнее: 11.02.2011, 11:57
  3. Запуск STS из .sna, сгенерированного sjasmplus.
    от siril в разделе Программирование
    Ответов: 7
    Последнее: 11.10.2010, 21:33
  4. Breakpoints в связке Sjasmplus+UnrealSpeccy
    от Kurles в разделе Программирование
    Ответов: 19
    Последнее: 26.01.2009, 12:36
  5. Disturbed COverMAnia ( music disk with z00m music collection)
    от kyv в разделе Музыка
    Ответов: 10
    Последнее: 27.03.2008, 10:01

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •