Ayne
New Member
Code:
Dim Seg_Display as byte[5]
Seg_Display0
Seg_Display1
Seg_Display2
Seg_Display3
Seg_Display4
we can access any variable.
How we do this in Assembly??
Code:
Dim Final_Volt as longint
How we definae in assembly that variable(For example Variable Volt) is a longint??
Code:
Dim Seg_Display as byte[5]
Dim v as byte
Main:
PORTB = Seg_Display[v]
Inc(v)
if v > 4 then
v = 0
end if
Seg_Display[0] = 10011011
Seg_Display[1] = 11001011
Seg_Display[2] = 10111111
Seg_Display[3] = 10111001
Seg_Display[4] = 11111011
Delay_ms(250)
Goto Main
End
How can we do this in Assembly?
Above all codes written in mikroBasic
I am beginer and learing from Nigel Goodwin's tutorials
Thanks in advance.