banksel and pagesel are assembler directives, not native instructions. They cause the assembler to generate code to flip the various paging bits to select RAM and ROM banks. But yes, the 10F322 has only one bank of each so you can ignore them and delete the references to PCLATH as well since calls/gotos will cover the one bank present. I left those in so that you would be aware of them when you move up to multibank PICs.Also, the PIC10 architecture has less instructions than other more advanced chips:
For instance, there's no pagesel instruction .... nor banksel
Each IRQsave xxx refers to a dedicated byte in RAM. General purpose memory starts at 40h so you can use the cblock directive to assign labels to some RAM or just use EQU:I guess I'm too spoiled by the PUSH and POP instructions available in the 8051 ... how is IRQsaveS supposed to be declared?
Code:
cblock 40h
IRQsaveS:1 ; saves status during IRQ
IRQsaveW:1 ; saves W during IRQ
endc
; OR
IRQsaveS equ 40h
IRQsaveW equ 41h
And yes, having to manually context save without push and pop and multiple register banks is one thing you'll miss..
