User Tag List

Страница 25 из 63 ПерваяПервая ... 212223242526272829 ... ПоследняяПоследняя
Показано с 241 по 250 из 699

Тема: SjASMPlus от z00m

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

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

    Регистрация
    11.01.2008
    Адрес
    Ладошкино
    Сообщений
    1,811
    Записей в дневнике
    4
    Спасибо Благодарностей отдано 
    385
    Спасибо Благодарностей получено 
    339
    Поблагодарили
    244 сообщений
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Ped7g, снова требуется немного разъяснить

    16+


    Три ошибки:

    и еще одна ошибка:


    я так понимаю next-команды процессора в основном работают??
    Тогда что может быть не так с этими четырьмя??
    Это не на NEXT, но процессор он него.
    Или "и так сойдет..." ?
    [свернуть]
    Profi v3.2 -=- Speccy2010,r2

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

  3. #2

    Регистрация
    22.05.2011
    Адрес
    г. Дзержинск, Украина
    Сообщений
    6,829
    Спасибо Благодарностей отдано 
    483
    Спасибо Благодарностей получено 
    663
    Поблагодарили
    513 сообщений
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Ped7g, а можно сделать такую команду
    на подобии define но с безусловной заменой
    и чтоб можно было менять даже пробелы

    а то мощности define не хватает


    например можно будет делать так

    Код:
    	if aa = 0
    	replace "AAA BBB", "10 LD a"
    	replace "VERSION", "0001"
    	endif
    
    	if aa = 1
    	replace "AAA BBB", "10 LD (HL)"
    	replace "label", "lb"
    	replace "VERSION", "0002"
    	endif
    
    	if aa = 2
    	replace "labelAAA", "label"
    	replace "AAA BBB", "10 LD (HL)"
    	replace "VERSION", "0003"
    	endif
    
    
    
    labelAAA BBB,B
    
    	SAVESNA "000-VERSION.sna", $8000
    Код:
    aa = 0
    
    label10 LD a,B
    
    	SAVESNA "000-0001.sna", $8000
    Код:
    aa = 1
    
    lb10 LD (HL),B
    
    	SAVESNA "000-0002.sna", $8000
    Код:
    aa = 2
    
    label BBB,B
    
    	SAVESNA "000-0003.sna", $8000
    Последний раз редактировалось NEO SPECTRUMAN; 18.06.2020 в 03:42.

  4. #3

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

    По умолчанию

    https://github.com/z00m128/sjasmplus...es/tag/v1.15.0

    v1.15.0 changelog:
    * added `BPLIST` and `SETBP` to export breakpoints info from asm for Unreal and ZEsarUX emulators
    * added ZX-like devices with 2/4/8 MiB of virtual memory
    * the fake-sysvars/state of ZXSPECTRUM48/128/... devices reworked, moving stack down by default
    * behaviour of `--fullpath` option unified across all platforms and compilers
    * `DEFARRAY` has new operator `[#]` to retrieve current size of array.
    * `MMU` has new optional third argument to set also address (like `ORG`)
    * use of forward reference in `IF`/`IFN` emits only warning, and can be suppressed
    * internal Lua updated to 5.1.5 (last official 5.1 version)
    * STDIN can be read multiple times (per each "-" argument)
    * new macro/lua examples: `sj_sysvars.i.asm`, `section.asm`, `lua_sin_table.asm`, `union_like_structures.asm`
    * RAM limit exceeded warning/error reworked to report with more sense, fixed bug with missing labels
    * `SAVETRD` warning about invalid extension can be suppressed by "; ok"
    * `EMPTYTRD` takes as second argument disc label
    * added `--outprefix` option to prefix any output-directive filename (issue #102)

    Enjoy.

    Эти 3 пользователя(ей) поблагодарили Ped7g за это полезное сообщение:

    Dart Alver(19.05.2020), NEO SPECTRUMAN(19.05.2020), zebest(19.05.2020)

  5. #4

    Регистрация
    22.05.2011
    Адрес
    г. Дзержинск, Украина
    Сообщений
    6,829
    Спасибо Благодарностей отдано 
    483
    Спасибо Благодарностей получено 
    663
    Поблагодарили
    513 сообщений
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от Ped7g Посмотреть сообщение
    * internal Lua updated to 5.1.5 (last official 5.1 version)
    ВНЕЗАПНО adp полностью пережил переход на новую версию
    готовый trd полностью совпал

    название диска тоже работает

  6. #5

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

    По умолчанию

    Цитата Сообщение от zebest Посмотреть сообщение
    снова требуется немного разъяснить
    If you click the letter of the particular test, it will show some debug values (usually the values which failed the test in the code).

    With that info, check the test source code to figure out what precisely failed.

    These four seems to be all I/O related, so it may be also the test does use some unlucky choice for port number to test against.

    I don't remember the implementation details for these tests, it's long time since I wrote it.
    If you can provide me with the debug info values of failed test, I may try to quickly look at the source what it means.

    But yes, your Z80N seems to be mostly working correctly, if only these four are failing.

  7. #6

    Регистрация
    11.01.2008
    Адрес
    Ладошкино
    Сообщений
    1,811
    Записей в дневнике
    4
    Спасибо Благодарностей отдано 
    385
    Спасибо Благодарностей получено 
    339
    Поблагодарили
    244 сообщений
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    ну да, в этих кодах ошибок уж точно я ничего не пойму

    16+











    [свернуть]

    Ну и регистры на всякий случай картинку.
    Я думаю, что не хватает какого то жизненно важного регистра. Все то они мне не нужны.
    Вот только с каким номером именно надо мне регистр))
    Profi v3.2 -=- Speccy2010,r2

  8. #7

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

    По умолчанию

    Цитата Сообщение от zebest Посмотреть сообщение
    в этих кодах ошибок уж точно я ничего не пойму
    nextreg *r, *n:

    It does test four NextRegister by writing/reading the value: LAYER2_XOFFSET_NR_16, VIDEO_INTERUPT_VALUE_NR_23, PALETTE_INDEX_NR_40, SPRITE_TRANSPARENCY_I_NR_4B
    (it's enough just to store and then return the same value for the test, it's not testing if the next register actual functionality is implemented)

    And your machine does also modify value written to I/O port 243B (value TRANSPARENCY_FALLBACK_COL_NR_4A is written there) - it should be not modified, "nextreg" instructions are independent from what is done directly to the $243B and $253B I/O ports.

    So to simplify when the test did stop:
    out ($243B),$4A
    nextreg $16,$01
    assert $4A == in ($243B) ; fails (is different)
    assert $01 == nextreg_16 ; fails (is $00)

    I guess the nextreg *r, A is the same issue.

    -------------

    OUTINB:

    I/O port $243B is used for the test
    out ($243B),$00
    assert $00 == in ($243B) ; fails, reads $FF

    -------------

    JP (C):

    Again depends on correct functionality of $243B / $253B, jumps to wrong address if port returns $FF instead of $00.

    Этот пользователь поблагодарил Ped7g за это полезное сообщение:

    zebest(13.06.2020)

  9. #8

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

    По умолчанию

    This doesn't fit well with current sjasmplus code-base ... I guess the least problematic way would be to add extra search+replace step before substitutions (DEFINE) are parsed, so it's possible, but it will slow down assembling of everything and it will be completely new code ( = new bugs ).

    But I'm also not sure if this is good addition to assembler, I would personally probably use `sed` as first step ahead of assembling (to create temporary asm file), as the sed can do all these string replacements in much better way, including regex syntax to precisely target certain constructs (I did use `sed` while fixing one MSX project wanting to migrate from tniassembler to sjasmplus, to fix many small details about syntax of their sources, you can find the article on sjasmplus github wiki).

    I would use something like (Makefile):

    Код:
    .PHONY all
    
    all : aa0.tap aa1.tap aa2.tap
    
    aa0.tap : main.asm
            sed -f sed_aa0_rules.txt main.asm > aa0.asm
            sjasmplus -Daa=0 aa0.asm
    
    aa1.tap : main.asm
            sed -f sed_aa1_rules.txt main.asm > aa1.asm
            sjasmplus -Daa=1 aa1.asm
    
    aa2.tap : main.asm
            sed -f sed_aa2_rules.txt main.asm > aa2.asm
            sjasmplus -Daa=2 aa2.asm
    ... building all variants with one `make` command.

    ... or something like that... there are also options to use `m4`, `awk` or even `cpp` (C pre-processor, not C++), depending on what kind of syntax/features you are looking for, all of these can be applied to asm sources easily.

    Whatever hack-ish solution I will add to sjasmplus, it will be nowhere near the power of these specialized tools (unless I re-implement whole tool inside sjasmplus), so I think I will rather leave these non-trivial cases to the specialized tools (also with 30+ year history, so almost everyone knows them and most of their bugs were already found + fixed... contrary to sjasmplus).

  10. #9

    Регистрация
    22.05.2011
    Адрес
    г. Дзержинск, Украина
    Сообщений
    6,829
    Спасибо Благодарностей отдано 
    483
    Спасибо Благодарностей получено 
    663
    Поблагодарили
    513 сообщений
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    По умолчанию

    Цитата Сообщение от Ped7g Посмотреть сообщение
    I would use something like (Makefile):
    все таки больше бы хотелось именно find&replace
    средствами самого ассемблера

  11. #10

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

    По умолчанию

    The SAVETRD refactoring and "&" for sector-append of files is now at master branch in github.

    If you are using SAVETRD in your projects, testing them now would be nice to catch any regressions before the v1.15.1 will be released.
    (for example how to use the "&" check "tests/misc/trd/savetrd4.asm" or "docs/documentation.xml" (html is not updated yet)).

    (of course you must build sjasmplus from the latest sources to have the new SAVETRD implementation)

    - - - Updated - - -

    Цитата Сообщение от NEO SPECTRUMAN Посмотреть сообщение
    все таки больше бы хотелось именно find&replace
    средствами самого ассемблера
    I don't understand what's the point of either adding lame sub-par limited feature in days/weeks of work (and that's still too much time), or trying to compete with excellent SW which already exists (sed/m4/awk/... all of that available everywhere, with years of expertise and know-how baked into them) - that would eat probably months/years of my time, completely wasted on something what I can run in 10 seconds.

    So far I have seen no factual justification for such demand (and I would be very surprised if you would come with something meaningful, because I can't even imagine anything reasonable).

    Этот пользователь поблагодарил Ped7g за это полезное сообщение:

    Dart Alver(02.07.2020)

Страница 25 из 63 ПерваяПервая ... 212223242526272829 ... ПоследняяПоследняя

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

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

Эту тему просматривают: 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

Ваши права

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