Structures tutorial
Last updated
Was this helpful?
Was this helpful?
@print_clients$qp6client proc near
ptr = word ptr 4
push bp
mov bp, sp
push si
mov si, [bp+ptr]
jmp short loc_1_32
loc_1_19: ; CODE XREF: print_clients(client *)+24j
mov ax, si
add ax, 5
push ax
push word ptr [si+3]
push word ptr [si+1]
mov ax, offset aId4ldName32s
push ax
call _printf
add sp, 8
mov si, [si+25h]
loc_1_32: ; CODE XREF: print_clients(client *)+7j
or si, si
jnz loc_1_19
pop si
pop bp
retn
@print_clients$qp6client endp
client_t struc
code db ?
id dd ?
name db 32 dup(?)
next dw ?
client_t ends
@print_clients$qp6client proc near
ptr = word ptr 4
push bp
mov bp, sp
push si
mov si, [bp+ptr]
jmp short loc_1_32
loc_1_19: ; CODE XREF: print_clients(client *)+24j
mov ax, si
add ax, client_t.name
push ax
push word ptr [si+client_t.id+2]
push word ptr [si+client_t.id]
mov ax, offset aId4ldName32s
push ax
call _printf
add sp, 8
mov si, [si+client_t.next]
loc_1_32: ; CODE XREF: print_clients(client *)+7j
or si, si
jnz loc_1_19
pop si
pop bp
retn
@print_clients$qp6client endp