I'm trying to clear RAM (to 00 hex) in Bank 0, registers 00 -> 7F only. But the program only clears up to register 48 hex. I must be doing something wrong. Can anyone advise please? Thanks, Simon.
; ; Clear RAM 00 -> 7FH ; Program only uses BANK0 registers ; CLRF BSR ;Ensure working in Bank0. LFSR FSR0,0x000 ;Initiate to RAM loc. 0 BUMP_RAM CLRF POSTINC0 ;Clear INDF & increment. BTFSS FSR0H,0 ;All done in Bank0? GOTO BUMP_RAM