Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Assemby

Assemby

Scheduled Pinned Locked Moved IT & Infrastructure
question
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sirrius
    wrote on last edited by
    #1

    Is there a compiler out there,perhaps the lcc -win32, that can convert C-code to a .s file in NASM format? And is this sytax here the right conversion between AT&T and NASM? MOV [ecx+ebx*4],edx ;movl %edx, 4(%ecx,%ebx) Sorry for the dumb questions. Just kind of getting desperate. Thanks.

    Z 1 Reply Last reply
    0
    • S Sirrius

      Is there a compiler out there,perhaps the lcc -win32, that can convert C-code to a .s file in NASM format? And is this sytax here the right conversion between AT&T and NASM? MOV [ecx+ebx*4],edx ;movl %edx, 4(%ecx,%ebx) Sorry for the dumb questions. Just kind of getting desperate. Thanks.

      Z Offline
      Z Offline
      ZoogieZork
      wrote on last edited by
      #2

      Sirrius wrote: Is there a compiler out there,perhaps the lcc -win32, that can convert C-code to a .s file in NASM format? GCC 3.x can output Intel-ish syntax via the -masm=intel parameter, e.g.: gcc -S -masm=intel test.c

      movl %edx, 4(%ecx,%ebx)

      In this instruction, the displacement is 4, the base is ecx, the index is ebx, and the scale is omitted (so it defaults to 1). Plug that into the formula I've mentioned before. - Mike

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups