Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 4 of 4
Search took 0.01 seconds.
Search: Posts Made By: pengzhixi
Forum: BOOK: Professional Assembly Language January 7th, 2013, 10:19 PM
Replies: 0
Views: 1,688
Posted By pengzhixi
error in code

page 303
code reads:

filds value
fmulp %st(0), %st(1)

ret
in Errata it is modified below:
filds value
fmulp %st(0), %st(1)
Forum: BOOK: Professional Assembly Language December 23rd, 2012, 08:59 PM
Replies: 0
Views: 1,072
Posted By pengzhixi
i need some help!

i come across a question when i read the page 149-150 of the book.
the code source below:
if (eax < ebx) || (eax == ecx) creates the following assembly language code:
if:
cmpl %eax, %ebx
jle...
Forum: BOOK: Professional Assembly Language December 23rd, 2012, 08:43 PM
Replies: 3
Views: 3,099
Posted By pengzhixi
11 andl $-16, %esp 12 subl $32, %esp it is...

11 andl $-16, %esp
12 subl $32, %esp

it is used to align the memory of stack.
Forum: BOOK: Professional Assembly Language December 23rd, 2012, 08:39 PM
Replies: 1
Views: 2,294
Posted By pengzhixi
cmpl %eax,%ecx ja label it jump to label...

cmpl %eax,%ecx
ja label

it jump to label when ecx is above eax.

i think using ja or jg both right here.
it uses ja when you treat them as unsigned-number and uses jg signed-number.
Showing results 1 to 4 of 4

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.