Tvùrce webu je i pro tebe! Postav tøeba web. Bez grafika. Bez kodéra. Hned.
wz

OBJECT.ASM

Objects


; =============================================================================
;
;                               Litos - Objects
;
; =============================================================================

		CODE_SECTION	32

; -----------------------------------------------------------------------------
;                           Initialize object
; -----------------------------------------------------------------------------
; INPUT:	EAX = object type
;		EBX = object address
; -----------------------------------------------------------------------------

ObjectInit:	mov	[ebx+OBJECT_Type],eax	; object type
		and	dword [ebx+OBJECT_Ref],byte 0 ; reference counter
		and	dword [ebx+OBJECT_Owner],byte 0 ; owner (system)
		ret

; -----------------------------------------------------------------------------
;                                   Data
; -----------------------------------------------------------------------------

		DATA_SECTION

; -----------------------------------------------------------------------------
;                            Uninitialized data
; -----------------------------------------------------------------------------

		BSS_SECTION

Back to source browser