aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-02-24 09:38:13 -0800
committerJoe Soroka <gits@joesoroka.com>2011-02-24 09:38:13 -0800
commit1b85b5505961f0d5c52156fb6a5a54db199e1071 (patch)
treeb430aa6a0c9210f15270b3b62c0d183d10293834
parentbec84fa00a4c4b2fab34e49fb8308e372c734709 (diff)
downloadtinycc-1b85b5505961f0d5c52156fb6a5a54db199e1071.tar.gz
tinycc-1b85b5505961f0d5c52156fb6a5a54db199e1071.tar.bz2
i386-asm: support "pause" opcode
-rw-r--r--i386-asm.h1
-rw-r--r--tests/asmtest.S1
2 files changed, 2 insertions, 0 deletions
diff --git a/i386-asm.h b/i386-asm.h
index f841d08..760c06d 100644
--- a/i386-asm.h
+++ b/i386-asm.h
@@ -34,6 +34,7 @@
DEF_ASM_OP0(rsm, 0x0faa)
DEF_ASM_OP0(hlt, 0xf4)
DEF_ASM_OP0(nop, 0x90)
+ DEF_ASM_OP0(pause, 0xf390)
DEF_ASM_OP0(xlat, 0xd7)
/* strings */
diff --git a/tests/asmtest.S b/tests/asmtest.S
index 8ae19d4..f73878f 100644
--- a/tests/asmtest.S
+++ b/tests/asmtest.S
@@ -606,3 +606,4 @@ ft1: ft2: ft3: ft4: ft5: ft6: ft7: ft8: ft9:
.type ft7,%function
.type ft8,"function"
+ pause