flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 12 Nov 2022, 00:07
You either need a byte override to force a byte load, or change the dw definitions to db.
Code: mov dh,byte [x] mov dl,byte [y] x dw 0 y dw 0 Code: mov dh,[x] mov dl,[y] x db 0 y db 0 |
|||
![]() |
|
geekbasic@gmx.com 12 Nov 2022, 00:17
That probably would have taken me several more hours to figure out.
I was considering using db, but that would make my program more complex than using the first option you suggested. I'll give it a try.. Thank you! |
|||
![]() |
|
bitRAKE 12 Nov 2022, 02:23
Another option is to not give the label a size specification:
Code: mov dh,[x] mov dl,[y] x: dw 0 y: dw 0 |
|||
![]() |
|
revolution 12 Nov 2022, 03:50
If you want to keep the size information and also avoid any overrides then you can use label to create an alias.
Code: mov dh,[x_bytes] mov dl,[y_bytes] mov ax,[x] mov bx,[y] label x_bytes byte x dw 0 label y_bytes byte y dw 0 |
|||
![]() |
|
geekbasic@gmx.com 12 Nov 2022, 05:35
The size protection is to prevent overflowing from the data?
I'm trying to make sure I understand. |
|||
![]() |
|
revolution 12 Nov 2022, 06:05
geekbasic@gmx.com wrote: The size protection is to prevent overflowing from the data? |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.