poke trisb, 0
start:
poke portb, 1
pause 500
poke portb 0
pause 500
goto start
LIST
F1_SOF equ $ ; ASMTES~1.BAS
F1_000001 equ $ ; in [ASMTES~1.BAS] poke trisb, 0
Clrw
Bsf STATUS,5
ram_bank = 1
Movwf TRISB
START
Bcf STATUS,5
ram_bank = 0
F1_000003 equ $ ; in [ASMTES~1.BAS] poke portb, 1
Movlw 1
Movwf PORTB
F1_000004 equ $ ; in [ASMTES~1.BAS] pause 500
Movlw 1
Movwf PP1H
Movlw 244
Call dly@w
F1_000005 equ $ ; in [ASMTES~1.BAS] poke portb, 0
Clrw
Movwf PORTB
F1_000006 equ $ ; in [ASMTES~1.BAS] pause 500
Movlw 1
Movwf PP1H
Movlw 244
Call dly@w
F1_000007 equ $ ; in [ASMTES~1.BAS] goto start
Goto START
END
pike said:I'm asking those who have learnt C and assembly. Which one is easier to learn??
obviously using basic makes you a noob... I guess...doh!!
pike said:These 2 examples of coding achieve exactly the same result (flash led at 1 Hz) yet the assembly version requires alot more typing. Why did you guys decide to use assembly???
StupidDum said:I haven't try that, but I cannot imagine how people debug assembly code of large program.
gogo2520 said:I'm trying assemble out myself, takes alittle studing but its dosen't seem that hard. I could use some help Understanding how to create a delay longer then a few seconds.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?