Started by AugustoRuiz, 19:52, 04 June 13
0 Members and 1 Guest are viewing this topic.
Quote from: ssr86 on 19: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 23:49, 07 November 13There is another form of write direct which allows writing directly to sectors on a disc image.
Quote from: ssr86 on 19:13, 23 November 13Parameters can only be numbers or characters it seems.
Quote from: ssr86 on 00:11, 01 February 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 14: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.072 seconds with 37 queries.