.include "C:\openice\include\reg\S3C9234.reg"
org 0000h
vector 00h,INT_9234
;******************************************************************
org 0100h
nop
nop
DI
ld SP,#0B0h ;set stack pointer
ld osccon,#00000000b ;enable main clock
ld clkcon,#00011000b ;instruction cycle=0.24us
ld btcon,#0a3h
LD P2CONH,#0AAH
ld p2conl,#10001111b
ld p2pur,#00000000b
ld r0,#07fh ;clear 00h-3fh ram
ld r1,#00h
ld r0,#00h
ld r1,#00h
start: ld siodata,#0aah
ld siocon,#11000110b
LD SIOPS,#10H
OR SIOCON,#08H
EI
MAIN: NOP
NOP
EI
JP MAIN
INT_9234: TM SIOCON,#01H
JR NZ,REC
IRET
REC: AND SIOCON,#0FEH
LD R0,SIODATA
IRET
.END