![]() |
|
[Assembly] DATA and BIT keyword in EMU8086 - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: [Assembly] DATA and BIT keyword in EMU8086 (/showthread.php?tid=4169122) |
DATA and BIT keyword in EMU8086 - 0x45 - Apr 13, 2014 What does the DATA and BIT keyword do in EMU8086 ? eg:) SECS DATA 23h BIT_0 BIT FLAGS.0 * - Masm4ever - Apr 13, 2014 (Apr 13, 2014 01:09 AM)0x45 Wrote: SECS DATA 23h Does it assemble, or does it throw an error? My suspicion is that FLAGS is a DWORD, and that .0 refers to bit zero. Can't help you much because I use "real" assemblers (Masm, JWasm) but in any case it would be more helpful if you posted a complete hello world example with these keywords. * - 0x45 - Apr 13, 2014 (Apr 13, 2014 03:38 AM)Masm4ever Wrote: Does it assemble, or does it throw an error? It assembles. The code is for interfacing some LCD display with 8086 for alarm clock. The full code is really long I cant post it here. http://pastebin.com/DjzGU1MA That is only about 1/4th of code. Check? * - Masm4ever - Apr 13, 2014 I've looked at your code, and things like mov eax/mov ax/mov al seem to be absent. Are you sure it's x86 code? * - LevelUp - Apr 13, 2014 (Apr 13, 2014 04:27 AM)0x45 Wrote: It assembles. The code is for interfacing some LCD display with 8086 for alarm clock. This to me is looking like 8051/52 instruction set rather than 8086. * - 0x45 - Apr 14, 2014 (Apr 13, 2014 03:44 PM)LevelUp Wrote: This to me is looking like 8051/52 instruction set rather than 8086. The code is for some microcontroller I dont know of. It is not of 8086, but they said they used EMU8086 |