home *** CD-ROM | disk | FTP | other *** search
/ 8bitfiles.net/archives / archives.tar / archives / commodore-scene-files / Coverdisks / CDU / V4D02.D64 / initv1.1.asm < prev    next >
Encoding:
Assembly Source File  |  2019-04-13  |  1.5 KB  |  79 lines

  1. e
  2. _*********************************************************
  3. _*                                                       *
  4. _*       module name : INIT.ASM - Set up the system      *
  5. _*                                                       *
  6. _*                Maintenance log                        *
  7. _*                ---------------                        *
  8. _*                                                       *
  9. _*   date      time                     action           *
  10. _*   ----      ----                     ------           *
  11. _* 24/02/89    21:40              initial coding         *
  12. _* 28/03/89    16:15    move message display to mess     *
  13. _* 22/04/89    10:30        clear nmiflag on start       *
  14. _*********************************************************
  15.  
  16.  
  17.  
  18. _ Start of Code
  19.              
  20.     ¥ #config           _ set to running config (I/O and some ROM)
  21.     » confreg
  22.  
  23.     ¥ #147
  24.     £ bsout        _ clear the screen
  25.     
  26.     £ settab        _ initialise table setup
  27.  
  28. _ set prog running flag to zero and also clear nmiflag
  29.  
  30.     ¥ #0
  31.     » progrun
  32.     » nmiflag
  33.  
  34. _ set common storage to 4K for screeen access
  35.  
  36.     ¥ ramconf
  37.     ó #1
  38.     » ramconf
  39.  
  40. _ define free storage table
  41.  
  42.     £ setstor
  43.  
  44. _ initialise the loader
  45.  
  46.     £ initload
  47.  
  48. _ Set up the interrupt vectors
  49.  
  50.     «
  51.     ¥ #>irq
  52.     » irqvec
  53.     ¥ #<irq
  54.     » irqvec+1
  55.     ¥ #>nmi
  56.     » nmivec
  57.     ¥ #<nmi
  58.     » nmivec+1
  59.     ¥ #>brk
  60.     » brkvec
  61.     ¥ #<brk
  62.     » brkvec+1
  63.     Å
  64.  
  65. _ display message
  66.  
  67.           ¥ #1
  68.     £ dispmess
  69.  
  70. _ Looping routine when no programs
  71. _ are running
  72.  
  73.  
  74. initext1  equ *
  75.     ¢ initext1
  76.  
  77.     IEND
  78.  
  79.