ASM code queston / frequency

hi folks,

my first posting :smiley: i also bought the 8048 programmer, installed the software and examinated the demo2 asm code which explained me how to turn on the 6 LED and how to use the buttons for 4 different “lightshows”

now i am currious about the timer frequency. there is a fixed given frequenzy
i never did a assembler code so i am completely lost here.

DELAY_ROUTINE MOVLW D’100’
MOVWF TIMER2
DEL_LOOP1 MOVLW D’100’
MOVWF TIMER1

so, now i want to use PORTA and PORTB switch to influence the frequency. like as i press SW1 to increase and SW2 to slow down…

any code sniplet how this can be done?

thanks
randy