Source codes (2)

From: Ruud_at_Baltissen.org
Date: Fri, 26 Dec 2014 10:17:53 +0100
Message-ID: <549D27C1.13313.5656E7@Ruud.Baltissen.org>
Hallo allemaal,


I included JiffyDOS 5.0 in my 'universal' 1541 source code. OK, it 
made this source even less readers friendly but it is still doable. 
And my little converter turns it into seven different readable 
versions in less than a second. And all these versions can be 
compiled as well.

I didn't include 1541-II so far because I thought there were too may 
differences that could make things completely unreadable. But first, 
the differences weren't that many and second, I think that 
editbility is IMHO more important than readability. That with my 
converter in mind. So I'm going to include 1541-II a well


I think I have two choices with converting my sources to XA, CA65 
and 64tas:
- using the universal file
- using all the different sources as base

In the last cae it is just a matter of programming to read 
seven/eight files and to create another extra 21/24 ones.

In the first case I need a bit of help. I added conditional branches 
to the very first file and I just want to be sure how to translate 
them. I would be pleased if someone familiar with conditional 
branches in the other assemblers could translate them, please.

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 2014-12-26 10:00:04

Archive generated by hypermail 2.2.0.