Thank you for the detailed installation instructions.
Unfortunately I get the following error, no matter which option I choose

TEENY.S85:1031: error: integer range: 3
  ^---- _RST rst_CompareDEHL ; compare DE(remaining_len) to HL(chunk_len)
      ^---- RST rst_CompareDEHL

Any idea how to fix this?
 
Rgeards
Georg 
========== Ihre Nachricht ==========================================

von      : Brian K. White <[email protected]>
gesendet : Sonntag, 18. Oktober 2026, 21:21
an       : [email protected]
Betreff  : [M100] OLIVETTI M10EU/INT ROM "TEENY inside"

__________ Originalnachricht _______________________________________


> Here ya go. This is also at:
> https://gist.github.com/bkw777/7a8c4d3f5f5db9fe68abba42b37d2ecd

> I set up a win11 vm and discovered it's quite a pain to get the full MSYS2 
> environment set up so that you can run "make" and "git" commands,
> and even after getting it all working, still it's not 100% because co2ba
> isn't working even though it's running in a suitable version of bash.
> So "make clean all" or "make clean M10eu" fails when it tries to generate the 
> .DO loader.

> So this is a minimal & manual setup where you only install z88dk itself and 
> you download the dl2 repo as a zip file instead of git clone.

> To update you'll have to manually download new zips and unpack them over the 
> exiting dirs, since you can't just run "git pull" to update.
> You have to run z80asm commands directly, including setting all the 
> commandline flags.
> You have to manually "del *.o *.bin *.CO" before every z80asm command because 
> it won't overwrite the old files and you'll wonder why the binary isn't 
> changing or working...

> But it's the minimal steps to get going.

> ================================================================================

> Download these in a browser:
> http://nightly.z88dk.org/z88dk-win32-latest.zip
> https://github.com/bkw777/dl2/archive/refs/heads/master.zip

> Extract the downloads in a CMD window in your users home dir:
cmd >>> Open
>> tar xvf Downloads\z88dk-win32-latest.zip
>> tar xvf Downloads\dl2-master.zip
>> ren dl2-master dl2
>> exit

> Set up z88dk environment variables:
env >>> "Edit environment variables for your account"
> In the top box "User variables for bkw":
Edit... >>> New > %USERPROFILE%\z88dk\bin > Enter > Ok
> * New...
>    Variable name: ZCCCFG
>    Variable value: %USERPROFILE\z88dk\lib\config
>    OK
> OK

> DONE WITH SETUP
> You should now be able to open a new cmd window and run "z80asm" with no 
> arguments and it should run and display the version.
> ============================================================================

> Now building TEENY, the baseline command is
>    z80asm -m8085_strict -no-synth <options...> -b TEENY.S85

> "-m8085_strict -no-synth" is required every time

> <options...> are one or more of
>    -DMODEL_x   x= 100na 200na NECna K85na M10na M10eu
>    -DHIMEM=n   use to generate .CO just below custom HIMEM
>    -DBAUD=n    Only use if you have a FB-100 hardwired for 9600
>    -DDSR       advised if you have a proper serial cable
>    -DERRCODES  slightly more informative error messages
>    -DROM       must use if running from rom
>    -DORG=n     alternative to HIMEM, overrides HIMEM
>    -DPRGLEN=n  required to generate valid .CO with CO header

> You must always manually delete leftover object files from previous builds 
> before each z80asm command.
> z80asm will not overwrite them and you will wonder why the binary isn't 
> changing.

> del *.o *.bin *.CO


> =======================================================================================
> Example to build a normal .CO file just below MAXRAM
> =======================================================================================
> 2-step process, build once without PRGLEN to find out the generated length,
> then build again with PRGLEN to generate the final usable .CO:

> Temp build  (without PRGLEN)
> ----------------------------

> C:\Users\bkw\dl2\clients\teeny\src>del *.o *.bin *.CO

> C:\Users\bkw\dl2\clients\teeny\src>z80asm -m8085_strict -no-synth 
> -DMODEL_M10eu -o=TEENY.CO -b TEENY.S85

> C:\Users\bkw\dl2\clients\teeny\src>dir TEENY.CO
> Volume in drive C has no label.
>   Volume Serial Number is 7E09-85FC

>   Directory of C:\Users\bkw\dl2\clients\teeny\src

> 10/18/2026  01:49 PM               626 TEENY.CO
>                 1 File(s)            626 bytes
>                 0 Dir(s)  119,040,880,640 bytes free


> Final build  (with PRGLEN)
> --------------------------

> C:\Users\bkw\dl2\clients\teeny\src>del *.o *.bin *.CO

> C:\Users\bkw\dl2\clients\teeny\src>z80asm -m8085_strict -no-synth 
> -DMODEL_M10eu -DPRGLEN=626 -o=TEENY.CO -b TEENY.S85

> C:\Users\bkw\dl2\clients\teeny\src>dir TEENY.CO
>   Volume in drive C has no label.
>   Volume Serial Number is 7E09-85FC

>   Directory of C:\Users\bkw\dl2\clients\teeny\src

> 10/18/2026  01:53 PM               632 TEENY.CO
>                 1 File(s)            632 bytes
>                 0 Dir(s)  119,040,208,896 bytes free


> ======================================================================================
> # Example to build a rom-embeddable .bin at 0x7CFB
> ======================================================================================

> C:\Users\bkw\dl2\clients\teeny\src>del *.o *.bin *.CO

> C:\Users\bkw\dl2\clients\teeny\src>z80asm -m8085_strict -no-synth 
> -DMODEL_M10eu -DROM -DORG=0x7CFB -b TEENY.S85

> C:\Users\bkw\dl2\clients\teeny\src>dir TEENY.bin
>   Volume in drive C has no label.
>   Volume Serial Number is 7E09-85FC

>   Directory of C:\Users\bkw\dl2\clients\teeny\src

> 10/18/2026  02:42 PM               627 TEENY.bin
>                 1 File(s)            627 bytes
>                 0 Dir(s)  119,028,436,992 bytes free



> --------------------------------------------------------------------------------------



> On 10/17/26 09:03, Georg Käter wrote:
>> Brian,
>>> the TEENY ROM version you made does the job so far. Thanks for this. Not > 
>>> 100%  sure,
>>> but it seems BASIC has to be started before 1st use of ROM TEENY. I´ve > to 
>>> investigate further.
>>> Attached M10INT ROM file includes this version and I made the PIMngr > menu 
>>> a bit nicer
>>> One question I still have: How to build TEENY files on a WIN11 computer?
>>> I´ve unpacked the z88dk-win32-2.4.zip and got ~500MB of data, not sure > if 
>>> this amount is necessary to build the files.
>>> Thanks again for your great work
>>> Georg
>>>>> ========== Ihre Nachricht ==========================================
>>> *von*      : Brian K. White <[email protected]>
>> *gesendet* : Donnerstag, 15. Oktober 2026, 20:27
>> *an*       : [email protected]
>> *Betreff*  : [M100] OLIVETTI M10EU/INT ROM "TEENY inside"
>>> __________ Originalnachricht _______________________________________
>>>>>     On 10/15/26 09:18, Georg Käter wrote:
>>>         Would it be possible for you to build a M10EU ROM version? I´m
>>         not > familiar with Z88DK-Z80ASM using
>>>             "make" ona Win11 machine.
>>             It would be great to get a ROM version of TEENY at address
>>             0x7CFB.
>>>     Attached since it's small.
>>>>     Note this is the latest version an so not as well tested. I think
>>     it's all working but I have definitely moved things around and made
>>     changes so it should be considered a testing version.
>>>>     I can help you get a build environment set up so you can hack on it
>>     yourself if you want. Without resorting to WSL2 just to be clear!
>>>>     There are native windows binaries for all the pieces, just needs a
>>     little putting together.
>>>>>> __________ Ende Originalnachricht __________________________________
>>> *Vertraulichkeitsinformation:
>> *Diese Nachricht ist vertraulich. Die Informationen dieser Nachricht > sind 
>> ausschließlich für die persönliche
>> und vertrauliche Verwendung durch den/die oben genannten Empfänger > 
>> bestimmt. Wenn Sie kein beabsichtigter
>> Empfänger sind, bitte lesen, kopieren und verwenden Sie die Nachricht > 
>> nicht. Machen Sie sie nicht anderen
>> zugänglich. Bitte informieren Sie uns umgehend über den Zustellfehler > und 
>> senden Sie die Originalnachricht
>> per E-Mail an uns zurück.
>>> *Confidentiality Notice:
>> *This message is confidential. The information contained in this message > 
>> is intended only for the personal
>> and confidential use of the recipient(s) named above. If you are not the > 
>> intended recipient, please do not
>> read, copy, or use it and do not disclose it to others. Please inform us > 
>> immediately of the delivery error
>> and return the original message to us via e-mail.



__________ Ende Originalnachricht __________________________________

Vertraulichkeitsinformation:
Diese Nachricht ist vertraulich. Die Informationen dieser Nachricht sind 
ausschließlich für die persönliche
und vertrauliche Verwendung durch den/die oben genannten Empfänger bestimmt. 
Wenn Sie kein beabsichtigter
Empfänger sind, bitte lesen, kopieren und verwenden Sie die Nachricht nicht. 
Machen Sie sie nicht anderen
zugänglich. Bitte informieren Sie uns umgehend über den Zustellfehler und 
senden Sie die Originalnachricht
per E-Mail an uns zurück.

Confidentiality Notice:
This message is confidential. The information contained in this message is 
intended only for the personal
and confidential use of the recipient(s) named above. If you are not the 
intended recipient, please do not
read, copy, or use it and do not disclose it to others. Please inform us 
immediately of the delivery error
and return the original message to us via e-mail.

Reply via email to