Thread: referencing C structure elements in assembly

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Registered User
    Join Date
    Aug 2001
    Posts
    8
    I tried moving to general purpose register, even that gives problem..

    And size is proper, It is unsigned short which is 16 bit. When It is word(32bit) compiler shouts.

    My statement is like this
    mov ax, state[state_ptr].stack_segment
    .. and when I compile using VC 6.0. the error is

    error: C2424 : '[' : improper operation in second operand

    please advise..
    Thanks..
    Al
    Last edited by BigAl; 09-10-2001 at 02:02 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 13
    Last Post: 12-14-2007, 03:34 PM
  2. passing structure arrays to functions?
    By bem82 in forum C Programming
    Replies: 3
    Last Post: 10-30-2006, 06:17 AM
  3. structure ...solution plz????
    By hegdeshashi in forum C Programming
    Replies: 4
    Last Post: 07-24-2006, 09:57 AM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. referencing structure variables
    By sballew in forum C Programming
    Replies: 1
    Last Post: 11-01-2001, 01:56 PM