- Timestamp:
- 08/07/2017 03:19:26 PM (7 years ago)
- Branches:
- master
- Children:
- 16badfe
- Parents:
- 27c8d40
- Location:
- rom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rom/bios.s
r27c8d40 r3370595 467 467 468 468 move.l #rsarea,savptr | Setup pointer to register area 469 move.l #RSMAGIC, _rsflag | Set magic in _rsflag469 move.l #RSMAGIC,rsflag | Set magic in rsflag 470 470 471 471 move.l #nullrts,timevec | Set timer interrupt vector … … 505 505 move.l #nullrte,0x007C | Set level 7 vector 506 506 507 move.l #trap13 ,0x00B4 | Set trap13 vector508 move.l #trap14 ,0x00B8 | Set trap14 vector507 move.l #trap13_,0x00B4 | Set trap13 vector 508 move.l #trap14_,0x00B8 | Set trap14 vector 509 509 510 510 .page … … 704 704 move.l #rsarea,savptr | Restore system save pointer 705 705 move.l #SSTACK,a7 | Reset the stack pointer 706 move.l #RSMAGIC, _rsflag| ... and the stack sentinel706 move.l #RSMAGIC,rsflag | ... and the stack sentinel 707 707 trap #15 | TRAP to ROMP 708 708 … … 805 805 .page 806 806 807 | trap14 -- Extended BIOS entry point808 | ------ -------------------------809 trap14 :lea t14tab,a0 | Setup trap 14 table address807 | trap14_ -- Extended BIOS entry point 808 | ------- ------------------------- 809 trap14_: lea t14tab,a0 | Setup trap 14 table address 810 810 bra trapent | Go process trap 811 811 812 | trap13 -- Main BIOS entry point813 | ------ ---------------------814 trap13 :lea t13tab,a0 | Setup trap 13 table address812 | trap13_ -- Main BIOS entry point 813 | ------- --------------------- 814 trap13_: lea t13tab,a0 | Setup trap 13 table address 815 815 816 816 trapent: move.l savptr,a1 | Get save area pointer … … 3732 3732 savptr: .ds.l 1 | Pointer to register save area 3733 3733 3734 _rsflag:.ds.l 1 | Register save area overflow flag3734 rsflag: .ds.l 1 | Register save area overflow flag 3735 3735 .ds.l 18*32 | Register save area (32 levels) 3736 3736 rsarea: .ds.l 1 | Dummy long word at top of save area -
rom/lowram.s
r27c8d40 r3370595 79 79 | The equate for HI_RAM must be set to match the memory configuration used. 80 80 81 | For a 512K system, _Hi_RAM = 0x08000082 | For a 1024K system, _Hi_RAM = 0x10000081 | For a 512K system, Hi_RAM = 0x080000 82 | For a 1024K system, Hi_RAM = 0x100000 83 83 84 _Hi_RAM = 0x100000 | highest RAM address + 184 Hi_RAM = 0x100000 | highest RAM address + 1 85 85 86 86 .page … … 91 91 LOWRAM: lea basebss,a0 | setup bss base 92 92 move.l a0,p_bbase | ... 93 lea _Hi_RAM-0x400,a1| setup faked bss length93 lea Hi_RAM-0x400,a1 | setup faked bss length 94 94 suba.l a0,a1 | ... 95 95 move.l a1,p_blen | ... … … 107 107 move.l a1,p_tlen | ... 108 108 109 lea _Hi_RAM,a7 | setup stack pointer109 lea Hi_RAM,a7 | setup stack pointer 110 110 111 111 lea p_lowtpa,a0 | setup TPA base
Note:
See TracChangeset
for help on using the changeset viewer.