Advertisement
Guest User

Untitled

a guest
Mar 25th, 2013
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. DCPU BOOTING SPECIFICATION V0.1
  2. by SecretReaction (from /r/0x10c and /r/dcpu16)
  3.  
  4. 1. Introduction
  5.  
  6. This document specifies the bootloader mechanism for the DCPU and it's associated hardware.
  7.  
  8. This document is a working specification, it may be changed or updated over time. It currently has not received any community input, and thus is likely going to have changes or updates in the near future.
  9.  
  10. The contents of this document are based on specifications that are not final, and thus this document may no longer be valid if they have a major change.
  11.  
  12. 2. Machine State
  13.  
  14. a. Registers
  15. {A, B, C, X, Y, EX, SP, IA, PC} = 0
  16. Z = Device booted from.
  17. {I, J} = Dependent on the type of device booted from.
  18.  
  19. b. Memory
  20. Bootloader code will be loaded to memory address 0. Additional data may be loaded immediately after the bootloader in memory, depending on the type of device being booted from.
  21.  
  22. c. Hardware
  23. All hardware will not be mapped to memory, nor will they send interrupt signals, nor will they be busy in any sort of way.
  24.  
  25. 3. Boot Code
  26.  
  27. The only requirement for the bootloader code is that the last word must equal 0x10AD on some devices.
  28.  
  29. If this signature is required, and is lacking, the device will not be considered bootable, and will be passed on for other devices.
  30.  
  31. 4. Booting from Disk Device
  32.  
  33. Registers I and J are equal to 0 when loading from a disk device.
  34.  
  35. The bootloader is loaded from the first sector of the disk. No additional data will be loaded into memory.
  36.  
  37. The bootloader must include the boot signature.
  38.  
  39. 5. Booting from Other Hardware
  40.  
  41. This specification is specifically left vague in terms of booting from other devices. As more device specifications are added, this document will be updated with their boot processes.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement