Section 9.2: Assembling and running CSC-1 programs (Frame 4)                     [prev][home][next]

A pseudo-op called NUM is not a machine instruction of the CSC-1, but instead tells the assembler to set aside one word of memory and put the indicated value into it. The values which follow NUM may be signed integers from -32768 up to +32767, or unsigned integers from 0 to 65535, in which case the letter "u" appears at the end, or unsigned binary numbers from 0 up to 1111111111111111 (16 ones) which is 65535. The letter "b" appears at the end of such binary numbers.

A:        NUM   10010b
B:        NUM   45389u
C:        NUM   -2738