Advertisement
cr1901

Watcom Linker Script for BIOS

Nov 2nd, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #OPTION NODEFAULTLIBS, MAP=bios, STACK=256, quiet
  2. #output raw offset=0xfe000 #Use if absolute addressing is necessary
  3. #library clibc.lib #Resolve _small_code_ symbol
  4.  
  5. #order # in which order should segments be put into binary
  6. #clname STACK segaddr=0x0030 offset=0x0000 #256-byte stack. Code is uninitialized, so NOEMIT not needed.
  7.  
  8. #clname CODE segment _BEGTEXT segment _TEXT
  9. #clname DATA NOEMIT segaddr=0x0040 offset=0x0000
  10.  
  11. #Class Types: 'POST', 'ISR', 'TABLES', 'FEATURE', 'BASIC'
  12. #Each segment is considered a module.
  13.  
  14. #clname CODE
  15. #segment _BEGTEXT #These are unused WATCOM defaults- they must be placed however.
  16. #segment _TEXT
  17. #clname POST_I segaddr=0xf000 offset=0xe000
  18. #clname INT02 segaddr=0xf000 offset=0xe2c3
  19. #segment int11_seg segaddr=0xf000 offset=0xf84d
  20. #segment font_seg segaddr=0xf000 offset=0xfa6e #Based on IBM Technical Reference Manual
  21. #segment org_jmp segaddr=0xf000 offset=0xfff0
  22. #clname BIOS_END segment org_jmp segaddr=0xf000 offset=0xfff0
  23.  
  24. #clname DATA
  25. #clname STACK
  26. #clname BSS #Not implemented yet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement