eprom.bld 821 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. INIT_BLD_EXAMPLE;
  2. SEGMENT
  3. *SEGMENTS(DPL = 0),
  4. startup.startup_code(BASE = 0FFFF0000H)
  5. ;
  6. TASK
  7. BOOT_TASK(OBJECT = startup, INITIAL,DPL = 0,
  8. NOT INTENABLED),
  9. PROTECTED_MODE_TASK(OBJECT = main_module,DPL = 0,
  10. NOT INTENABLED)
  11. TABLE
  12. GDT (
  13. LOCATION = GDT_EPROM,
  14. ENTRY = (
  15. 10: PROTECTED_MODE_TASK,
  16. startup.startup_code,
  17. startup.startup_data,
  18. main_module.data,
  19. main_module.code,
  20. main_module.stack
  21. )
  22. ),
  23. IDT (
  24. LOCATION = IDT_EPROM
  25. );
  26. MEMORY
  27. (
  28. RESERVE = (0..3FFFH,
  29. -- Area for the GDT, IDT, TSS copied from ROM
  30. 60000H..0FFFEFFFFH),
  31. RANGE = (ROM_AREA = ROM (0FFFF0000H..0FFFFFFFFH)),
  32. -- Eprom size 64K
  33. RANGE = (RAM_AREA = RAM (4000H..05FFFFH))
  34. )