i try to understand the "Arraywrite".
So we that command, we set the Months from January to December with values (how many days each months have).
Please let me undestand if that is right:
At the beggining of the program i need to create an array called 'ndays'
Code:
ndays VAR BYTE [12] 'create an array with 12 byte location for months values
Then i might need to create an ALIAS the location for each month?
Code:
January VAR ndays[0]
February VAR ndays[1]
March VAR ndays[2]
April VAR ndays[3]
May VAR ndays[4]
June VAR ndays[5]
July VAR ndays[6]
August VAR ndays[7]
September VAR ndays[8]
October VAR ndays[9]
November VAR ndays[10]
December VAR ndays[11]
But i guess that i need to specify somewhere how many days each month have.
Code:
nday[0] = 31
ndays[1] = 28
ndays[2] = 31
ndays[3] = 30
ndays[4] = 31
ndays[5] = 30
ndays[6] = 31
ndays[7] = 31
ndays[8] = 30
ndays[9] = 31
ndays[10] = 30
ndays[11] = 31
Up to here is that right?
Bookmarks