Source codes (3)

From: Ruud_at_Baltissen.org
Date: Thu, 01 Jan 2015 11:59:54 +0100
Message-ID: <54A528AA.20313.AD6EEB@Ruud.Baltissen.org>
Hallo allemaal,


First a Happy New Year to everyone!


I managed to write a program that is able to turn convert my first 
one-file source code into ones for 64tass, CA64 and XA. Many thanks 
to Soci because his source codes were very helpfull.

Unfortunately things go wrong the moment I use conditional branches. 
For one or another reason I do something wrong. So my question is 
again if somebody could the equivalents of my code, please.


; Choose the version
Version = 4;


A simple branche:

.if Version=4				; 1540
;				      1540
;
;	This source code generates the ROM for the 1540 in the address
.el
;				      1541
;
;	This source code generates the ROM for the 1541 in the address
.ei



A branch with more than one value:

.if Version=5 | Version=6 | Version=7
	nop
	nop
	nop
.el
	jsr	WaitLoop0		;				[EA4E]
.ei


A nested one:

.if Version=7				; JiffyDOS 6.01
.tz 'JIFFYDOS 5.0 1541'
.el
.if Version=4				; 1540
.tz 'CBM DOS V2.6 V170'
.el
.tz 'CBM DOS V2.6 1541'
.ei
.ei


Thank you very much in advance!


--
   
Kind regards / Met vriendelijke groet, Ruud Baltissen
www.Baltissen.org






       Message was sent through the cbm-hackers mailing list
Received on 2015-01-01 12:00:04

Archive generated by hypermail 2.2.0.