Printed Amstrad Addict magazine announced, check it out here!
Started by AugustoRuiz, 17:52, 04 June 13
0 Members and 1 Guest are viewing this topic.
Quote from: ssr86 on 18:13, 23 November 13Is it possible to write such a macro in Winape??:Code Select Expandmacro load_A_with reg ld a,regendm
macro load_A_with reg ld a,regendm
;;Define some of the 3-bit CPU register indexes as used by the LD r,r' instruction for convenience_b EQU %000_c EQU %001_d EQU %010_e EQU %011_h EQU %100_l EQU %101;_z EQU %110_a EQU %111;; Add the 3-bit register index argument with the LD A,r opcode to make the final instruction;; Note: the AND %111 is only here to sanitize the input, just in case.macro load_a_with reg db reg AND %111 + %01111000 mend;; Macro usage: load_a_with _b load_a_with _c load_a_with _d load_a_with _e load_a_with _h load_a_with _l load_a_with _a
Quote from: Executioner on 22:49, 07 November 13There is another form of write direct which allows writing directly to sectors on a disc image.
Quote from: ssr86 on 18:13, 23 November 13Parameters can only be numbers or characters it seems.
Quote from: ssr86 on 23:11, 31 January 14Is there a way to use inequalities in conditional code...?
IF par1-const AND &8000...ENDIF
if par1<const1 AND par2<const2...endif
Quote from: ssr86 on 13:49, 01 February 14Thank you, it helped a lot:)But is there a way to have two inequalities checked in one 'if', or do I have to go with two 'ifs' because I can't use brackets...
Page created in 0.059 seconds with 25 queries.