pike
Member
Hey guys,
I just started learning assembly (tried) and am getting trouble even understanding one word. Look at these 2 codes below
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???
I feel like i just wasted $50US on a book that is too complex to understand.
I just started learning assembly (tried) and am getting trouble even understanding one word. Look at these 2 codes below
Code:
poke trisb, 0
start:
poke portb, 1
pause 500
poke portb 0
pause 500
goto start
Code:
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
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???
I feel like i just wasted $50US on a book that is too complex to understand.