Specifications
Designer Reference Manual USB08 Evaluation Board
120 Source Code Files MOTOROLA
Source Code Files
CRTSJB8.S
; C STARTUP FOR HC08JB8
; Copyright (c) 1995 by COSMIC Software
;
xref _main, __sbss, __memory, __stack, __HC08Setup
xdef _exit, __stext
;
__stext:
ldhx #__stack ; initialize stack pointer
txs
jsr __HC08Setup
;
ldhx #__sbss ; start of bss
bra loop ; start loop
zbcl:
clr 0,x ; clear byte
aix #1 ; next byte
loop:
cphx #__memory ; up to the end
bne zbcl ; and loop
prog:
ldhx #__stack ; initialize stack pointer
txs
jsr _main ; execute main
_exit:
bra _exit ; and stay here
;
end
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...










