fallen@fixe:~/asm$ cat test.asm
X BIT P1.0
Y BIT P1.1
Z BIT P1.7
ORG 0
LJMP debut
ORG 30h
debut:
MOV C, Y
ANL C, /X
MOV F0, C
MOV C, X
ANL C, /Y
ORL C, F0
MOV Z, C
fin:
SJMP fin
end
fallen@fixe:~/asm$ asem -v test.asm
MCS-51 Family Macro Assembler ASEM-51 V1.3
no errors
fallen@fixe:~/asm$ s51 -t 8051 -p "s51>"
uCsim 0.5.4, Copyright (C) 1997 Daniel Drotos, Talker Bt.
uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
0s51>set bit P1.0 1
0x90 ff .
0s51>set bit P1.1 1
0x90 ff .
0s51>set bit P1.7 1
0x90 ff .
0s51>exec "test.hex"
1s51>:03000000020030CB
2147483647
1s51>:10003000A291B09092D5A290B09172D5929780FE85
10003000
1s51>:00000001FF
1
1s51>
0s51>dump F0
PSW.5 0xd0 00 0
0s51>dump 0xD7
PSW.7 0xd0 00 0
0s51>dump P1.0
P1.0 0x90 ff 1
0s51>dump P1.1
P1.1 0x90 ff 1
0s51>dump P1.7
P1.7 0x90 ff 1