converting pascal records into assembly structures.


num_block_rows = 4
num_block_ columns = 9

type
tblock = RECORD
x,y : integer;
color : byte;
var
block : array[1..num_block_rows, 1..num_block_columns] of tblock

could someone please help me converting the above into assembly?? thank you.








Comments

  • [b][red]This message was edited by AsmGuru62 at 2003-12-4 13:8:21[/red][/b][hr]
    :
    : num_block_rows = 4
    : num_block_ columns = 9
    :
    : type
    : tblock = RECORD
    : x,y : integer;
    : color : byte;
    : var
    : block : array[1..num_block_rows, 1..num_block_columns] of tblock
    :
    : could someone please help me converting the above into assembly?? thank you.


    [code]
    TBlock struct
    x dw ?
    y dw ?
    color db ?
    TBlock ends

    TBlockRow struct
    cols TBlock 9 Dup (<?>)
    TBlockRow ends

    Block struct
    rows TBlockRow 4 Dup (<?>)
    Block ends

    .DATA
    Object Block <?>
    [/code]


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion