Download 32-bit general purpose microcontroller core User manual

Transcript
User manual
Source file Main.asm
Extern IrqTimer
Extern IrqUart
.data
dw 0 dup(16)
FStack:
; Data segment
FFlags:
db 0
FFifoBuf:
db 0 dup(16)
.code
sjmp
Start
; Code segment
; Execution starts here
Align 4
; It is important to align IRQ table by 4
; ** IRQ table starts here
dd IrqTimer
; Pointer to the interrupt routine IrqTimer
dd IrqUart
; Pointer to the interrupt routine IrqUart
Start:
mov
esp,FStack
; Execution of program will start here
mov
al,0
mov
[FFlags],al
. . .
Source file IrqVect.asm
Public IrqTimer
Public IrqUart
.code
; Code segment
IrqTimer:
; Implement code here
iret
IrqUart:
; Implement code here
iret
15/37