Ayne
New Member
I am the user of MikroBasic and not use Assembly too much, but i am familair with Assembly and have made a little program Blinking LED in it.
There will be many members who want's to learn Assembly, May this thread help those.
In this thread i want to ask Senoir membors that share the Best way of doing Such a thing
I request to Senoir Membors that guide us, How we do such a task in Assembly.
Convert the above code in assembly and explain it.
And i think it should be include in Nigels Tutorial Website.
Muhammad Ahmed Attari
Thanks.
There will be many members who want's to learn Assembly, May this thread help those.
In this thread i want to ask Senoir membors that share the Best way of doing Such a thing
Code:
program Learn_Assembly
Dim i as Byte
Dim j as Byte
Dim z as Byte
main:
'******* If Statement(bolean functions with Constants) *********
If i = 100 Then
z = 40
End if
'---------------
If i > 100 Then
z = 40
End if
'-----------------
If i < 100 Then
z = 40
End if
'-----------------
'******* If Statement (bolean functions with Variables) *********
If i = j Then
z = 40
End if
'---------------
If i > j Then
z = 40
End if
'-----------------
If i < j Then
z = 40
End if
'-----------------
'******* Select case Statement *********
select case i
case 1
z = 40
case 2
z = 50
case else
z = 100
end select
'******* For Statement *********
for i = 0 to 99
z = i + 1
next i
'******* While Statement (bolean functions with Constants) *********
while i < 99
z = i + 2
i = i + 1
wend
'******* While Statement (bolean functions with Variables) *********
while i < j
z = i + 2
i = i + 1
wend
'******* Do Statement (bolean functions with Constant) *********
do
z = i + 2
i = i + 1
loop until i = 99
'******* Do Statement (bolean functions with Variables) *********
do
z = i + 2
i = i + 1
loop until i = j
End.
I request to Senoir Membors that guide us, How we do such a task in Assembly.
Convert the above code in assembly and explain it.
And i think it should be include in Nigels Tutorial Website.
Muhammad Ahmed Attari
Thanks.
Last edited: