Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 46 lines (32 sloc) 1.314 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
DCPUStation's assembler has a few extra commands

#1
.def : Defines a litteral constant

Example:
---------
.def VIDEO_MEM 0x8000
SET A, [VIDEO_MEM+B] is then equivalent to SET A, [0x8000+B]

#2
.include : Includes another source file.. Warning.. no cycling-include test yet.. ;)

#3
.out : Defines the final program's filename (must be 6.3 format)

Example :
----------
.out "SAMPLE.PRG"

#4
.Assert_Address : Triggers an error when assembling if the current address we're assembling doesn't match the parameter
Useful when you rely on some code/data to be located at a specific address

Example :
----------
.assert_address 21

#5
.org / .end_org : Adds some litteral constant value to the address of symbols that are resolved in this region
this is mostly useful in Loader code, when you need to move some code at another location...

#6

.no_relocation_table : Assembler won't output any relocation table for that program...
this should only be used for OS code, or code that you know will start at 0

#7
.incbin "file" : Includes the given file as data

#8
.strip_start / .strip_end
will strip the code from executable when not actually used. Useful when including big libraries
(work in progress, directives are ignored so far)

Something went wrong with that request. Please try again.