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)

    По умолчанию

    BTW about outputting large files... keep in mind sjasmplus is ASSEMBLER ... it can emit MACHINE CODE ...
    It would be very bad assembler, if it would be impossible to emit any machine code you need. And machine code is like binary data.

    So if everything else fails (you want new file format which is not supported by sjasmplus), you can do also something like this:
    Код:
      OUTPUT "file.xyz"
      DB "header bytes", 1, 2, 3, 4
      DISP 0x4000
    vram:
      DB 1, 2, "... 6192 bytes in total"
      ENT
      DB "some other section bytes like crc or pages"
      DISP 0xC000
    start:
      ; some code
      ENT
      ; ... etc
      OUTEND  ; close the file
    This is not very practical for formats which use compression, or where you need to calculate many fields in the header, but for things like ROM images there shouldn't be any major problem to prepare binary images precisely to your liking.

    Similarly, I did need something similar for the ZX Next, so I added support of NEX file format to sjasmplus (but took me 5 months longer than I expected, because whenever I take a look at that source, I find some bug... :/ ... instead of working on my projects...)

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

  3. #2

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

    По умолчанию

    Цитата Сообщение от Ped7g Посмотреть сообщение
    DISP 0x4000 vram: DB 1, 2, "... 6192 bytes in total" ENT DB "some other section bytes like crc or pages" DISP 0xC000
    когда я последний раз пользовался disp
    (на старой версии компилятора)

    оказалось что оно с ошибками компилирует
    уже не помню что именно
    или не работали макросы и jp вели не туда куда надо

    или lua генерировала код не по тем адресам


    в конечном итоге
    я этим disp больше не пользуюсь

    может конечно его уже и починили...

    - - - Добавлено - - -

    Цитата Сообщение от Ped7g Посмотреть сообщение
    As far as I can tell, slot 0 is not part of snapshot files, but page 1 will be stored in the zx128 snapshot, so the data you prepared there, you can still page them in at regular zx128 bank at 0xC000 (or even to other slots on +3 machines, but I don't know details how those work). But slot 0 is considered ROM area by snapshot files (but that's not problem of sjasmplus, but limitation of the file format)
    page0 прекрасно подключается у злых русских в slot0

    http://dev.speccy.info/index.php?tit...#Pentagon-1024

  4. #3

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

    По умолчанию

    Цитата Сообщение от NEO SPECTRUMAN Посмотреть сообщение
    когда я последний раз пользовался disp
    (на старой версии компилятора) ...
    There was a serious bug when using DISP and crossing slot-boundary, the machine code was lost. I think I fixed it in v1.12.x or v1.13.0, not sure, and too lazy to check the changelog. (the other sjasmplus has this one fixed for many years, but it was still bugged in z00m's versions)

    There is another issue of DISP inside DISP, which is not well defined in docs, and not well implemented: basically one you start DISP, the next change of "$" should be done by ORG, which will affect the DISP address, and I really don't like the current status, but so far I didn't have time to rewrite this, will be probably part of incompatible v2.x changes.

    But otherwise it should work reasonably well, if you hit some problem, surely let me know, thank you.


    (about Pentagon ... hey, slow down, I can hardly page the banks at regular ZX128, don't know how it works at +3, and the only thing I know about Soviet ZX clones is, that they exist ... or at least there are rumours ...)

    I think few years ago, like in 2008 or so, I had brief period of checking ZX scene, and I tried to find some info, but everything is in azbuka and Russian, so that didn't go well... (now I'm using google translator to decipher messages in this thread, it usually makes about 70% understandable, the rest I ignore, but it's quite exhausting to chew through some of the personal chit-chat or sort-of-poetry, so sometimes I just give up and don't understand)
    Последний раз редактировалось Ped7g; 30.07.2019 в 20:24.

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

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

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

Ваши права

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