Re: [DNG] OT: Assembly resources

2016-03-11 Thread Emiliano Marini
+1 On Mon, Mar 7, 2016 at 6:26 PM, Mitt Green wrote: > Here are even more: > > Info on SysV ABI: > http://www.x86-64.org/documentation/abi.pdf > > amd64 registers: > http://www.logix.cz/michal/devel/amd64-regs/ > > x86 opcode and instruction reference: > http://ref.x86asm.net/ > > Thanks to gens

Re: [DNG] OT: Assembly resources

2016-03-07 Thread Mitt Green
Here are even more: Info on SysV ABI: http://www.x86-64.org/documentation/abi.pdf amd64 registers: http://www.logix.cz/michal/devel/amd64-regs/ x86 opcode and instruction reference: http://ref.x86asm.net/ Thanks to genss from LQ. All links are collected in the thread on LQ: http://www.linuxque

Re: [DNG] OT: Assembly resources

2016-03-02 Thread Rainer Weikusat
Emiliano Marini writes: > Maybe the C compiler adjusts what registers to use for C code to avoid > conflicts, or saves his registers on the stack before the assembly code. > I'm just guessing, I never embed assembly code in C programs. When using gcc inline assembly, one will usually either use n

Re: [DNG] OT: Assembly resources

2016-03-02 Thread Emiliano Marini
Maybe the C compiler adjusts what registers to use for C code to avoid conflicts, or saves his registers on the stack before the assembly code. I'm just guessing, I never embed assembly code in C programs. On Wed, Mar 2, 2016 at 7:17 PM, Hendrik Boom wrote: > On Wed, Mar 02, 2016 at 08:55:20AM -

Re: [DNG] OT: Assembly resources

2016-03-02 Thread Hendrik Boom
On Wed, Mar 02, 2016 at 08:55:20AM -0300, Emiliano Marini wrote: > But be aware that gas is the one GCC uses for in-line assembly embedded in > C programs. So, if you are planning to embed assembly instructions in C > code, you will need to learn gas syntax. I've always wondered how the C code gen

Re: [DNG] OT: Assembly resources

2016-03-02 Thread Emiliano Marini
You welcome. BTW: about debugging with ddd, you have the (huge) manual here http://www.gnu.org/software/ddd/manual/pdf/ddd.pdf Or a nice quick guide here http://cs.smith.edu/~thiebaut/classes/231_0708/doc/quickstart.html Greetings, Emiliano. On Wed, Mar 2, 2016 at 5:05 PM, Mitt Green wrote: >

Re: [DNG] OT: Assembly resources

2016-03-02 Thread Mitt Green
Thanks for the advice and the links, Emiliano. I appreciate it. Peace, Mitt ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Re: [DNG] OT: Assembly resources

2016-03-02 Thread Emiliano Marini
Honestly, I use yasm because it was Teacher's choice before I was a Teaching Assistant. Anyways, yasm supports gas and nasm syntax, and multiple binary object formats. yasm/nasm use a syntax similar to Intel's, and gas uses a syntax similar to AT&T. It's a matter of taste but, to me, AT&T it's less

Re: [DNG] OT: Assembly resources

2016-03-01 Thread Mitt Green
Emiliano Marini wrote: >I teach assembly, but x86. I use yasm to compile and ddd to debug. >You can start with this: [...] Thank you, sir, that's galore. I myself found asm.sourceforge.net and dugan from LQ recommended me http://programminggroundup.blogspot.ca/ Why do you use yasm? If we co

Re: [DNG] OT: Assembly resources

2016-03-01 Thread Emiliano Marini
I teach assembly, but x86. I use yasm to compile and ddd to debug. You can start with this: http://www.cs.virginia.edu/~evans/cs216/guides/x86.html http://www.tortall.net/projects/yasm/manual/html/manual.html http://www.cs.dartmouth.edu/~sergey/cs108/tiny-guide-to-x86-assembly.pdf http://cs.smith

Re: [DNG] OT: Assembly resources

2016-02-28 Thread Hendrik Boom
On Sun, Feb 28, 2016 at 09:07:01PM +0800, Brad Campbell wrote: > > I started with the 6502 and a dead tree of the Apple ][ ROM source a > couple of moons ago. That was so much more pleasant than x86 > assembly, but that method works just as well. x86 has an ugly machine language, and with all the

Re: [DNG] OT: Assembly resources

2016-02-28 Thread Brad Campbell
On 28/02/16 17:49, Mitt Green wrote: Hi, I believe, here are some people that know assembly, I'd like to know what resources would ye recommend that teach it. Preferably AT&T syntax using gas. I do my coding in C, but always wondered about something low level. Also, I have a book The Art of A