You are not logged in.

#1 2008-08-18 16:16:39

Dimon-z
Member
Registered: 2008-06-22
Posts: 92

From ASM to C ASM

Help
How to this asm code

  mov dx,3d4h
  mov al,0F
  mov ah,byte [tty_cursor]
  out dx,ax

  mov al,0E
  mov ah,byte [tty_cursor+1]
  out dx,ax

replace to ASM C code AT&T?

Offline

#2 2008-11-26 06:25:58

archnoob
Member
Registered: 2008-11-03
Posts: 2

Re: From ASM to C ASM

Are you talking about inline ASM? If so that depends on the compiler but here is a link to inline asm in gcc:http://www.ibiblio.org/gferg/ldp/GCC-In … HOWTO.html . I hope that helps.

Offline

#3 2008-11-27 01:56:13

chilebiker
Member
From: Zurich, Switzerland
Registered: 2006-07-18
Posts: 161

Re: From ASM to C ASM

AT&T ASM syntax is a pain in the a*** when you're used to Intel code. I used it years ago to write fast Win32 apps with the LCC-Win32 compiler. Search the net, there's plenty of documentation on AT&T assembler syntax.


Don't panic!

Offline

Board footer

Powered by FluxBB