Commit Graph

10 Commits

Author SHA1 Message Date
yuchen
316bbf6b92 fix bug in lab1-ex3.c, %% eax --> %eax in basic inline asm
the reference is from
https://gcc.gnu.org/onlinedocs/gcc.pdf (5.0.0 pre-release),
section 6.43 (How to Use Inline Assembly Language in C Code)
and http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

syntax of basic asm statement:
asm [ volatile ] ( Assembler Instructions )

syntax of extended asm statement
asm [volatile] ( Assembler Template
: Output Operands
[ : Input Operands
[ : Clobbers ] ])

Alanpsc, thanks you!
2015-04-01 11:49:42 +08:00
yuchen
dab71e324d add info for pmboot.S 2015-03-14 00:17:50 +08:00
yuchen
7d29eb7cf0 A toy protect-mode bootloader can display string in real/protect mode of x86. 2015-03-13 22:44:25 +08:00
yuchen
e2a6da26b1 add more comments in toy.S 2015-03-13 22:08:13 +08:00
yuchen
de888683e8 add a toy bootloader in real mode of x86 2015-03-13 21:59:52 +08:00
os_lab_user
d1cd830da5 add lab1-ex2 2015-03-11 13:06:58 +08:00
yuchen
f2c3333eaa add lab-ex3 for inline assembly for C examples 2015-03-10 21:09:43 +08:00
yuchen
621bb0278f update lab1-ex for 32bit and strace -f 2015-03-09 23:14:47 +08:00
yuchen
749f4e3f93 update related_info 2015-03-07 22:37:54 +08:00
chyyuu
759eca9dda add lab1 related info 2013-09-17 20:36:57 +08:00