; ; assumption that the 32 kilobyte SRAM is mapped at 0x8000 ; .EQU RAM,H'8000 ; these are your interrupt vectors .ORG 0x03 LJMP RAM + H'03 ; this will map to your SRAM ; codes ... ; codes ... ; routine to read an Intel hex format ; for each data, put data to SRAM ; ; Accumulator has data ; DPH is 0x80 ; DPL is 0x00 ; MOVX @DPTR,A ; this will put the data to the SRAM ; ; this will execute the data in SRAM as code ; LJMP RAM ; execute previous data as code this time ; ;