Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#tzx PURE-DATA error v2 #37

Closed
zxmak opened this issue Jan 14, 2025 · 2 comments
Closed

#tzx PURE-DATA error v2 #37

zxmak opened this issue Jan 14, 2025 · 2 comments

Comments

@zxmak
Copy link

zxmak commented Jan 14, 2025

The issue #36 is fixed partially. It still present if there is flag instead of data byte.

Here is test file which fails to compile:
24-LOOP_Zorro0.asm.zip

This block fails:

#tzx PURE-DATA, BLOCK45_DATA, 0, *, flag=$e8, checksum=none, lastbits=6, pause=0
        .tzx-data-sym   0,  564,564     ; symbol#0 for bit 0
        .tzx-data-sym   0, 1129,1129    ; symbol#1 for bit 1
in file 24-LOOP_Zorro0.asm:
902: 
     ^ tape block BLOCK45_DATA: size = 0
assembled file: 24-LOOP_Zorro0.asm
    902 lines, 1 pass, 0.0234 sec.
    1 error
@Megatokio
Copy link
Owner

Megatokio commented Jan 14, 2025

i'm not quite sure ... makes it sense to save a block with 0 bytes?
what did you want to achieve?
after all, you cannot save 6 bits from the last byte if there are no bytes?
Kio !

@Megatokio
Copy link
Owner

ok, i have changed the sanity test to add flagbyte and checksum -if present- to the data size.
now your example assembles, hopefully as expected.

please test it and verify the output.
Kio !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants