Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <ProjectTemplate Name="Operating System" Packer="83PlusOS" Language="z80" Type="8xp" Category="TI-83/84+ (SE) Assembly" Description ="A 3rd party Operating System">
- <SupportedModels>
- <SupportedModel>TI83P</SupportedModel>
- <SupportedModel>TI83PSE</SupportedModel>
- <SupportedModel>TI84P</SupportedModel>
- <SupportedModel>TI84PSE</SupportedModel>
- <SelectedModel>TI83P</SelectedModel>
- </SupportedModels>
- <Dependencies></Dependencies>
- <Files>
- <File Name="{Name}.asm" Open="true" Focus="true">
- <Content>
- <![CDATA[ page 00
- jr Boot
- db 0,0,0,0,0,0
- db 0, 0, 0 ; rst 08h
- db 0,0,0,0,0
- db 0, 0, 0 ; rst 10h
- db 0,0,0,0,0
- db 0,0,0 ; rst 18h
- db 0,0,0,0,0
- db 0, 0, 0 ; rst 20h
- db 0,0,0,0,0
- db 0,0 ; rst 28h
- db 0,0,0,0,0
- db 0,0 ; rst 30h
- db 0,0,0,0,0,0,0
- db 0, 0, 0 ; rst 38h
- db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- db 0,0,0,0,0,0,0,0,0
- jp Boot
- dw 0A5FFh
- Boot: ; 0058h
- SysInterrupt:
- ex af, af'
- exx
- ResumeInterrupt:
- in a, (04h)
- bit 0, a
- jp nz, HandleON
- bit 1, a
- jp nz, HandleTimer1
- bit 2, a
- jp nz, HandleTimer2
- bit 4, a
- jp nz, HandleLink
- jp InterruptDone
- HandleON:
- in a, (03h)
- res 0, a
- out (03h), a
- set 0, a
- out (03h), a
- ; ON interrupt...
- jp InterruptDone
- HandleTimer1:
- in a, (03h)
- res 1, a
- out (03h), a
- set 1, a
- out (03h), a
- ; Timer 1 Interrupt...
- jr InterruptDone
- HandleTimer2:
- in a, (03h)
- res 2, a
- out (03h), a
- set 2, a
- out (03h), a
- ; Timer 2 Interrupt
- jp InterruptDone
- HandleLink:
- in a, (03h)
- res 4, a
- out (03h), a
- set 4, a
- out (03h), a
- ; Link interrupt...
- InterruptDone:
- exx
- ex af, af'
- ei
- ret]]>
- </Content>
- </File>
- </Files>
- </ProjectTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement