I have an existing program, written in gen80 assembly which I now try to make to work for both MSX-BASIC and in DOS by adding conditional assembly (e.g. for BDOS calls).
According to the gen80 manual it should support IF ... THEN ... ENDC but it gives me
Bad mnemonic in ....
on the IF statement. A simplified piece of code that shoud work?
DOS equ 1 org 0100h IF DOS ld a,1 ELSE ld a,2 ENDC ret
Any ideas what I am doing wrong here? I tried various alterations to no avail.
This with gen80 2.04.
!login ou Inscrivez-vous pour poster