Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Assembly 

DATA and BIT keyword in EMU8086

What does the DATA and BIT keyword do in EMU8086 ?

eg:)

SECS DATA 23h
BIT_0 BIT FLAGS.0
Hack the World!
(Apr 13, 2014 01:09 AM)0x45 Wrote:  SECS DATA 23h
BIT_0 BIT FLAGS.0

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.
(Apr 13, 2014 03:38 AM)Masm4ever Wrote:  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.

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?
Hack the World!
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?
(Apr 13, 2014 04:27 AM)0x45 Wrote:  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?

This to me is looking like 8051/52 instruction set rather than 8086.
(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
Hack the World!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Assembly] by MordiciaMay 2, 2019 11:36 AM 0 307 May 2, 2019 11:36 AM
Last Post: Mordicia
[Help] by camrympsOct 29, 2013 11:52 AM 1 151 Oct 29, 2013 11:52 AM
Last Post: Cybride
by ToXiiCJul 8, 2012 12:16 PM 0 147 Jul 8, 2012 12:16 PM
Last Post: ToXiiC