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 #36

Open
zxmak opened this issue Dec 10, 2024 · 2 comments
Open

#tzx PURE-DATA error #36

zxmak opened this issue Dec 10, 2024 · 2 comments

Comments

@zxmak
Copy link

zxmak commented Dec 10, 2024

I'm trying to compile code with this fragment:

#tzx PURE-DATA, BLOCK45_DATA, 0, *, flag=none, 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
        defb    $e8

but it leads to the following error:

in file 24-LOOP_Zorro.asm:
904: 
     ^ tape block BLOCK45_DATA: size = 0
assembled file: 24-LOOP_Zorro.asm
    904 lines, 1 pass, 0.0346 sec.
    1 error

I tried to use flag=$e8 with no data but it leads to the same error.

Probably, this happens because the data length is 6 bits, which is less than 1 byte. As a result, zasm might round it down to 0 bytes and mistakenly think that there is no data at all.

here is full test file:
24-LOOP_Zorro.asm.zip

@Megatokio
Copy link
Owner

hello,
i'll look into this.
kio !

@Megatokio
Copy link
Owner

Hi,
i fixed it. please test it.
i currently can only compile for Linux, so either pick the executable from https://k1.spdns.de/Develop/Projects/zasm/zasm, compile it from git or use the online assembler.
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