flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tommy 13 Nov 2004, 23:28
Code: mov ax,[variable] mov [variable2],ax |
|||
![]() |
|
Matrix 14 Nov 2004, 01:23
Registers are the part of your CPU = Central Processing Unit
it Contains ALU FPU in simple cases, ALU Arithmetical & Logical Unit contains the registers FPU Floating Point Unit contains the fpu stack 8*10 bytes (also these are somwhat MMX registers too) 32bit ALU contains 32 bit registers EAX EBX ECX EDX each has a 16 bit lower part accessable simply by using AX BX ... and these have lower and upper bytes accesable simply by using AL (low) AH (hi) byte BL BH ... segment registers, which you can load a general purpose register in/out in 16 bit mode: cd ds es gs fs gs ss 32 bit mode: ESI EDI EBP ESP EBX EDX can be used as address pointer you can extend my post, this was a quick. for example you can in 16 bit mode address a byte in memory like: Code: mov byte [es:di],al ; these 2 lines are equal to stosb (if direction flag cleared (cld)) inc di mov al,byte [ds:si] ; these 2 lines are equal to lodsb (if direction flag cleared (cld)) inc si |
|||
![]() |
|
Kristian_ 14 Nov 2004, 12:23
Thank you!
|
|||
![]() |
|
Matrix 15 Nov 2004, 23:51
well i see your thread is already DUPE,
http://board.flatassembler.net/topic.php?p=18303 why do you post same question multiple times? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.