13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ConstantsA constant must start with an integer from 0 through 9. For example, thehexadecimal constant FF must be written OFF.The default number base is hexadecimal. A decimal constant consists of anumber followed by a period (decimal point).EXAMPLE: Hexadecimal: 13Decimal: 19.Location CounterThe Assembler recognizes the asterisk ( *) in the operand field as areference to the current value of the location counter. For example, thestatementLOOP JMP *would be assembled as a jump to the location of the jump itself; in otherwords, an infinite loop or virtual halt.Addressing ModeThe value of an expression appearing in the operand field of an instructionis used either as immediate data, as an address, or as an indirect address.The default case is to use it as an address.As usual with the 6502, immediate data is indicated by a number sign ( #)before an expression. For example,LDA #5is assembled as a load-accumulator immediate with data 05.The notation used in the sample program for the indirect and indexedaddressing modes is not the same as the standard notation defined by themanufacturer of the 6502 microprocessor. (The Assembler will accept thestandard notation, but note the warning below.)Assembler InformationII-179

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!