Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ProjectTemplate Name="Operating System" Packer="83PlusOS" Language="z80" Type="8xp" Category="TI-83/84+ (SE) Assembly" Description ="A 3rd party Operating System">
  3.   <SupportedModels>
  4.     <SupportedModel>TI83P</SupportedModel>
  5.     <SupportedModel>TI83PSE</SupportedModel>
  6.     <SupportedModel>TI84P</SupportedModel>
  7.     <SupportedModel>TI84PSE</SupportedModel>
  8.     <SelectedModel>TI83P</SelectedModel>
  9.   </SupportedModels>
  10.   <Dependencies></Dependencies>
  11.   <Files>
  12.     <File Name="{Name}.asm" Open="true" Focus="true">
  13.       <Content>
  14.         <![CDATA[   page 00
  15.     jr Boot
  16.     db 0,0,0,0,0,0
  17.     db 0, 0, 0 ; rst 08h
  18.     db 0,0,0,0,0
  19.     db 0, 0, 0   ; rst 10h
  20.     db 0,0,0,0,0
  21.     db 0,0,0   ; rst 18h
  22.     db 0,0,0,0,0
  23.     db 0, 0, 0 ; rst 20h
  24.     db 0,0,0,0,0
  25.     db 0,0   ; rst 28h
  26.     db 0,0,0,0,0
  27.     db 0,0   ; rst 30h
  28.     db 0,0,0,0,0,0,0
  29.     db 0, 0, 0 ; rst 38h
  30.     db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  31.     db 0,0,0,0,0,0,0,0,0
  32.     jp Boot
  33.     dw 0A5FFh
  34. Boot:   ; 0058h
  35.  
  36.  
  37. SysInterrupt:
  38.     ex af, af'
  39.     exx
  40. ResumeInterrupt:
  41.     in a, (04h)
  42.     bit 0, a
  43.     jp nz, HandleON
  44.     bit 1, a
  45.     jp nz, HandleTimer1
  46.     bit 2, a
  47.     jp nz, HandleTimer2
  48.     bit 4, a
  49.     jp nz, HandleLink
  50.     jp InterruptDone
  51. HandleON:
  52.     in a, (03h)
  53.     res 0, a
  54.     out (03h), a
  55.     set 0, a
  56.     out (03h), a
  57.     ; ON interrupt...
  58.     jp InterruptDone
  59.  
  60. HandleTimer1:
  61.     in a, (03h)
  62.     res 1, a
  63.     out (03h), a
  64.     set 1, a
  65.     out (03h), a
  66.     ; Timer 1 Interrupt...
  67.     jr InterruptDone
  68.  
  69. HandleTimer2:
  70.     in a, (03h)
  71.     res 2, a
  72.     out (03h), a
  73.     set 2, a
  74.     out (03h), a
  75.     ; Timer 2 Interrupt
  76.     jp InterruptDone
  77.  
  78. HandleLink:
  79.     in a, (03h)
  80.     res 4, a
  81.     out (03h), a
  82.     set 4, a
  83.     out (03h), a
  84.     ; Link interrupt...
  85.  
  86. InterruptDone:
  87.     exx
  88.     ex af, af'
  89.     ei
  90.     ret]]>
  91.       </Content>
  92.     </File>
  93.   </Files>
  94. </ProjectTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement