cs.S 325 B

1234567891011121314151617181920212223242526
  1. #include "common.h"
  2. BEGIN
  3. CLEAR
  4. mov %cs, %ax
  5. PRINT_HEX <%al>
  6. PRINT_NEWLINE
  7. /* CS = 1 */
  8. ljmp $1, $1f
  9. 1:
  10. .skip 0x10
  11. mov %cs, %ax
  12. PRINT_HEX <%al>
  13. PRINT_NEWLINE
  14. /* CS = 2 */
  15. ljmp $2, $1f
  16. 1:
  17. .skip 0x20
  18. mov %cs, %ax
  19. PRINT_HEX <%al>
  20. PRINT_NEWLINE
  21. hlt