Category : Assembly Language Source Code
Archive   : SVASM02.ZIP
Filename : TESTBOOL.ASM

 
Output of file : TESTBOOL.ASM contained in archive : SVASM02.ZIP
;
; TEST FILE FOR BOOLEAN, SHIFT, AND MOD OPERATORS
;
* = $1234
;
.INCLUDE TESTBOOL.ASM ;ERROR TEST
ARG1 = $44
ARG2 = $FF
ARG3 = $1188
ARG4 = $0
;
BOOL1 = NOT ARG1 ; FFBB
BOOL2 = ARG3 AND ARG2 ; 0088
BOOL3 = ARG2 MOD ARG1 ; 0033
BOOL4 = ARG4 OR ARG1 ; 0044
BOOL5 = ARG2 XOR $55AA ; 5555
BOOL6 = ARG2 SHL 2 ; 03FC
BOOL7 = ARG3 SHR 2 ; 0462
BOOL8 = ARG2 AND NOT ARG1 ; DON'T USE THIS CONSTRUCT. IT SHOULD
; YIELD $00BB, BUT REQUIRES
; HIERARCHICAL ARITHMETIC. USE NEXT
; STATEMENT INSTEAD.
BOOL9 = ARG2 AND BOOL1 ; BOOL1 IS NOT ARG1 (ABOVE)
;
* = * + $100 AND $FF00 ;START A NEW MEMORY PAGE AT NEXT
;
; .END ;REQUIRED, BUT COMMENTED OUT FOR
;ERROR TEST.


  3 Responses to “Category : Assembly Language Source Code
Archive   : SVASM02.ZIP
Filename : TESTBOOL.ASM

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/