Updated tests to use printsignednumber subroutine from debug.pvvs instead of stdio...
[vvhitespace] / stdlib_tests / 3001_not.pvvs
... / ...
CommitLineData
1@ All zeros to all ones
2SSSSN | PUSH 0
3NSTTSTSSSN | JSR > 101000 (not)
4NSTTTTTSTN | JSR > 111101 (debug:printsignednumber)
5
6@ All ones to all zeros
7SSTTN | PUSH -1
8NSTTSTSSSN | JSR > 101000 (not)
9NSTTTTTSTN | JSR > 111101 (debug:printsignednumber)
10
11@ Test alternating bits, leading zero.
12@ Note that 6148914691236517205 = 0101...0101
13SSSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTN | PUSH +6148914691236517205
14NSTTSTSSSN | JSR > 101000 (not)
15NSTTTTTSTN | JSR > 111101 (debug:printsignednumber)
16
17@ Test alternating bits, leading one.
18@ Note that -6148914691236517206 = 1010...1010 in twos-complement but we
19@ enter it in sign magnitude format so the bit pattern appears different.
20SSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTTSN | PUSH -6148914691236517206
21NSTTSTSSSN | JSR > 101000 (not)
22NSTTTTTSTN | JSR > 111101 (debug:printsignednumber)
23
24@ All done.
25NNN | DIE
26
27#include <logic.pvvs>
28#include <debug.pvvs>