Skip to content

Commit 415a871

Browse files
author
Samwise
committed
BeebASM v1.02 - first released Nov 06 2008 11:06:45
1 parent 260a6a6 commit 415a871

30 files changed

+1631
-22
lines changed

COPYING.txt

+674
Large diffs are not rendered by default.

about.txt

+42-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
*******************************************************************************
22
* *
3-
* BeebAsm V1.01 *
3+
* BeebAsm V1.02 *
44
* *
55
* A portable 6502 assembler with BBC Micro style syntax *
66
* *
7-
* Rich Talbot-Watkins <[email protected]> *
7+
* Copyright (C) Rich Talbot-Watkins 2007, 2008 *
8+
9+
* *
10+
* This program is free software: you can redistribute it and/or modify *
11+
* it under the terms of the GNU General Public License as published by *
12+
* the Free Software Foundation, either version 3 of the License, or *
13+
* (at your option) any later version. *
14+
* *
15+
* This program is distributed in the hope that it will be useful, but *
16+
* WITHOUT ANY WARRANTY; without even the implied warranty of *
17+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18+
* General Public License for more details. *
19+
* *
20+
* You should have received a copy of the GNU General Public License *
21+
* along with this program, as COPYING.txt. If not, see *
22+
* <http://www.gnu.org/licenses/>. *
823
* *
924
*******************************************************************************
1025

@@ -38,7 +53,12 @@ functions, including SIN, COS and SQR - very useful for building lookup tables
3853
directly within a source file.
3954

4055
BeebAsm is distributed with source code, and should be easily portable to any
41-
platform you wish.
56+
platform you wish. To build under Windows, you will need to install MinGW
57+
(http://www.mingw.org), and the most basic subset of Cygwin
58+
(http://www.cygwin.org) which provides Windows versions of the common Unix
59+
commands. Ensure the executables from these two packages are in your
60+
Windows path, and BeebAsm should compile without problems. Just navigate to
61+
the directory containing 'Makefile', and enter 'make code'.
4262

4363

4464

@@ -342,13 +362,20 @@ CLEAR <start>, <end>
342362
it first.
343363

344364

345-
SAVE "filename", start, end [, exec]
365+
SAVE "filename", start, end [, exec [, reload] ]
346366

347367
Saves out object code to either a DFS disc image (if one has been
348-
specified), or to the current directory as a standalone file. 'exec'
349-
specifies the execution address of the file when saved to a disc image. A
368+
specified), or to the current directory as a standalone file. A
350369
source file must have at least one SAVE statement in it, otherwise nothing
351370
will be output. BeebAsm will warn if this is the case.
371+
372+
'exec' can be optionally specified as the execution address of the file when
373+
saved to a disc image.
374+
375+
'reload' can additionally be specified to save the file on the disc image to
376+
a different address to that which it was saved from. Use this to assemble
377+
code at its 'native' address, but which loads at a DFS-friendly address,
378+
ready to be relocated to its correct address upon execution.
352379

353380

354381
PRINT
@@ -547,11 +574,19 @@ limits, in terms of creating a flicker-free animation, updating at 50Hz.
547574
(This is not to say that it's particularly impressive, but nonetheless, it
548575
really is pushing the hardware!!)
549576

577+
There is also a demo called "relocdemo.asm", which shows how the 'reload
578+
address' feature of SAVE can be used to write self-relocating code. This is
579+
based on the above demo, but it runs at a low address (&300).
580+
550581

551582

552583

553584
9. VERSION HISTORY
554585

586+
06/11/2008 1.02 Bugfix: now it's possible to save location &FFFF.
587+
Added 'reload address' parameter to SAVE.
588+
Properly integrated the GPL License text into the
589+
distribution.
555590
14/04/2008 1.01 Bugfixes: allow lower case index in abs,x or abs,y.
556591
Fails if file already exists in output disc image.
557592
Symbol names may now begin with assembler opcode names.
@@ -581,6 +616,6 @@ really is pushing the hardware!!)
581616

582617
There are bound to be loads. I wrote it quickly! Please help me zap all the
583618
problems by reporting any bugs to me, Rich Talbot-Watkins, at
584-
619+
<[email protected]>, or join the forum at <http://www.retrosoftware.co.uk>.
585620

586621
Thank you!

beebasm.exe

3 KB
Binary file not shown.

demo.asm

-1
Original file line numberDiff line numberDiff line change
@@ -475,4 +475,3 @@ ALIGN &100
475475
\ ******************************************************************
476476

477477
SAVE "Code", start, end
478-

demo.ssd

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)