![]() |
|
#1
|
|||
|
|||
Assembly Language - ArraysI am a beginner and am trying to display the current date. So far I have this but it just keeps printing Sunday which is the first entry in the "DayName" array. I am trying to get the current date from the system to display. Can anyone direct me in what I am doing wrong.
Heres my code...if need to see my macro file let me know. Code:
Any help in the right direction would be appreciated!! |
|
#2
|
|||
|
|||
Re: Assembly Language - ArraysQuote:
What do you think that these three instructions do? Code:
Here's what I think they do, but I cant test, since I have no way (and no desire) to assemble and execute them. 1. Put the decimal number 11 into the 8-bit register bl. 2. Multiply the contents of the 8-bit register al by the contents of the 8-bit register bl and store the 16-bit result in ax, which consists of ah:al. 3. Put the value of the symbol DayName (the address of the first character in the string 'Sunday.$ ') into the register ax. Is that what you had in mind? Regards, Dave |
|
#3
|
|||
|
|||
Re: Assembly Language - ArraysQuote:
Ahhh....I see what I did wrong there it should be " add ax, OFFSET Dayname" . Thanks you for catching that. But now I am having problems displaying that. I know now that I some how need to send the ax register to my _showtext or create a new macro because the _showtext macro is: Code:
|
|
#4
|
|||
|
|||
Re: Assembly Language - ArraysAhhh....I got it working....I saved it to another variable and created a new macro that looks like so:
Code:
|
|
#5
|
|||
|
|||
Re: Assembly Language - Arrayshii illinum
dear im a very beginner in assembly my project is to show date and time is assembly language masm 6 using simples coding can u plz help me in this matter?? my id is mwasim22@yahoo.com u can contact me there plz reply me as soon as u can! m really waiting for ur reply!! regards! |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Program Not working, assembly language | czerdrill | Assembly Language | 1 | 28-Oct-2007 14:13 |
| Please help me with assembly language! | czerdrill | Assembly Language | 0 | 20-Oct-2007 13:13 |
| Assemblers & assembly language | BlueFireCO. | Assembly Language | 2 | 26-Mar-2007 09:56 |
| which language ? | onauc | CPP / C++ Forum | 2 | 19-Nov-2004 02:53 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The