Files
x86-bare-metal-examples/cs.S

28 lines
391 B
ArmAsm
Raw Normal View History

2018-12-04 09:46:27 +00:00
/* https://github.com/cirosantilli/x86-bare-metal-examples#cs */
#include "common.h"
BEGIN
CLEAR
mov %cs, %ax
PRINT_HEX <%al>
PRINT_NEWLINE
/* CS = 1 */
ljmp $1, $1f
1:
.skip 0x10
mov %cs, %ax
2015-10-20 21:04:49 +02:00
PRINT_HEX <%al>
PRINT_NEWLINE
/* CS = 2 */
ljmp $2, $1f
1:
.skip 0x20
mov %cs, %ax
2015-10-20 21:04:49 +02:00
PRINT_HEX <%al>
PRINT_NEWLINE
hlt