Started by AugustoRuiz, 19:52, 04 June 13
0 Members and 1 Guest are viewing this topic.
Quote from: AugustoRuiz on 10:30, 05 June 13I'm looking for documentation on MAXAM macros, but cannot find any... Can anybody point me in the right direction?Thank you!
Quote from: arnoldemu on 10:56, 05 June 13http://www.cpcwiki.eu/index.php/Maxam_1.5
Quote from: AugustoRuiz on 11:14, 05 June 13Sorry, read both PDFs there, but couldn't find any info on macros (and still cannot)...
MACRO INCLUDE fileName READ fileNameENDM
Quote from: AugustoRuiz on 10:30, 05 June 13I'm looking for documentation on MAXAM macros, but cannot find any... Can anybody point me in the right direction?
Quote from: TFM/FS on 19:08, 06 June 13Well, Maxam and Maxam 1.5 do not have macros. If you want to use macros then please use Maxam II (it runs under CP/M Plus and is compatible with RAM disc and hard disc HD20).
Quote from: ssr86 on 22:47, 19 October 13ld a,label loads the low byte...
Quote from: ssr86 on 00:01, 20 October 13But isn't there a assembler function that recognizes which byte of a word you want to load?I remember that turbo assembler for c64 had the signs < and > to do that (ldx #>label was the high byte). Because I know what the high byte is so I could just load the register with that but I use a label for that address and I would want to use that label when loading.
LD r,addr / 256
LD r,addr / #100
Quote from: ssr86 on 13:05, 06 November 13Macros with arguments - are they supported in WinApe assembler? If yes, then what is the syntax?
argument equ 1 (1 for true, 0 for false)IF argument ...some code...ENDIF
Macro (arg1, arg2) ld a,arg1 and arg2 or (hl)EndM
Quote from: ssr86 on 13:42, 06 November 13What I had in mind was something like this:
Macro local labels can be defined by prefixing with an @ symbol, they can be nested and may be called recursively. Macros can override reserved assembler symbols. The ! symbol is used to exclude the use of macros from a symbol. (eg. If the LDI symbol had been redefined, you can assemble a standard LDI using !LDI).MacroSyntax: macro <name> [parameter1[,parameter2[...]]]Define a new macro.macro <name> [parameter1[,parameter2[...]]] ; some codemendYour macro MUST BE DEFINED BEFORE being used in the source!
macro load_A_with reg ld a,regendm
load_A_with bload_A_with cload_A_with dload_A_with e
Page created in 0.083 seconds with 49 queries.