Forum Elektronika
audio radio telewizja cyfrówka okablowanie

∑ temat został odczytany 3130 razy ¬


ZAREJESTRUJ SIĘ I ZALOGUJ NA FORUM, TO NIC NIE KOSZTUJE!
PO ZALOGOWANIU BĘDZIESZ MÓGŁ ZOBACZYĆ WYPOWIEDZI SPECJALISTÓW I WYŁĄCZYĆ REKLAMY

ELEKTRONIKA | Cyfrówka
czy zna ktos asemblera na mK 8051 
Wyślij odpowiedź [powiadom znajomego]    
Autor "czy zna ktos asemblera na mK 8051"   
 
nowrad
 Wysłana - 10 luty 2003 16:58        | zgłoś naruszenie regulaminu

Mam pare pytan czy ktos mi odpowie?

 
Ss
 Wysłana - 10 luty 2003 21:57      [zgłoszenie naruszenia]

No znam, super master w tym nie jestem ale nauczyłem się go w kilka dni. O wiele to prostsze niż asm na PC.

Informacja to nie rozkaz. Zatwierdź lub zignoruj.

 
hlehle
 Wysłana - 11 marzec 2003 16:57      [zgłoszenie naruszenia]

Ss skad sie uczyles?
Bo i ja musze a nie chce mi sie jak cholera:P
Podaj stronki lub ksiazki fajne jakies:]

 
Ss
 Wysłana - 11 marzec 2003 20:24      [zgłoszenie naruszenia]

Ehehehee jak ci powiem to się załamiesz

Otworzyłem helpa w Bascomie i tam jest spis komend z objaśnieniami co robią. Potem tylko na necie poszukałem jak zrobić IF x>y THEN w assemblerze i już. Cała nauka zajęła mi 3 dni Wprawdzie nie znam jakiśch tam sztuczek i innego badziewia, ale średnio skomplikowane progi już umiem pisać. Kiedyś się chciałem nauczyć assemblera na PC i nie dało rady, a asm na 8051 to łatwizna

Informacja to nie rozkaz. Zatwierdź lub zignoruj.

 
Ss
 Wysłana - 11 marzec 2003 20:26      [zgłoszenie naruszenia]

A tak to wygląda:

Rn working register R0-R7
Direct 128 internal RAM locations, any IO port, control or status register.
For example : P1, P3, ACC
@Ri indirect internal RAM location addressed by register R0 or R1
#data 8-bit constant included in instruction
#data16 16-bit constant included in instruction
Bit 128 software flags, any IO pin, control or status bit
For example : ACC.0, P1.0, P1.1

----------------------------
Boolean variable maniulation

CLR C clear carry flag
CLR bit clear direct bit
SETB C set carry flag
SETB bit set direct bit
CPL C complement carry flag
CPL bit complement direct bit
ANL C, bit AND direct bit to carry flag
ORL C,bit OR direct bit to carry flag
MOV C,bit Move direct bit to carry flag

------------------------
Program and machine control

LCALL addr16 long subroutine call
RET return from subroutine
RETI return from interrupt
LJMP addr16 long jump
SJMP rel short jump (relative address)
JMP @A+DPTR jump indirect relative to the DPTR
JZ rel jump if accu is zero
JNZ rel jump if accu is not zero
JC rel jump if carry flag is set
JNC rel jump if carry flag is not set
JB bit,rel jump if direct bit is set
JNB bit,rel jump if direct bit is not set
JBC bit,rel jump if direct bit is set & clear bit
CJNE A,direct,rel compare direct to A & jump of not equal
CJNE A,#data,rel comp. I'mmed. to A & jump if not equal
CJNE Rn,#data,rel comp. I'mmed. to reg. & jump if not equal
CJNE @Ri,#data,rel comp. I'mmed. to ind. & jump if not equal
DJNZ Rn,rel decrement register & jump if not zero
DJNZ direct,rel decrement direct & jump if not zero
NOP No operation

----------------------
Arithmetic operations

ADD A,Rn add register to accu
ADD A,direct add register byte to accu
ADD A,@Ri add indirect RAM to accu
ADD A,#data add immediate data to accu
ADDC A,Rn add register to accu with carry
ADDC A,direct add direct byte to accu with carry flag
ADDC A,@Ri add indirect RAM to accu with carry flag
ADDC A,#data add immediate data to accu with carry flag
SUBB A,Rn subtract register from A with borrow
SUBB A,direct subtract direct byte from A with borrow
SUBB A,@Ri subtract indirect RAM from A with borrow
SUBB A,#data subtract immediate data from A with borrow
INC A increment accumulator
INC Rn increment register
INC direct increment direct byte
INC@Ri increment indirect RAM
DEC A decrement accumulator
DEC Rn decrement register
DEC direct decrement direct byte
DEC@Ri decrement indirect RAM
INC DPTR increment datapointer
MUL AB multiply A & B
DIV AB divide A by B
DA A decimal adjust accu

--------------------
Logical operations

ANL A,Rn AND register to accu
ANL A,direct AND direct byte to accu
ANL A,@Ri AND indirect RAM to accu
ANL A,#data AND immediate data to accu
ANL direct,A AND accu to direct byte
ANL direct,#data AND immediate data to direct byte
ORL A,Rn OR register to accu
ORL A,direct OR direct byte to accu
ORL A,@Ri OR indirect RAM to accu
ORL A,#data OR immediate data to accu
ORL direct,A ORL accu to direct byte
ORL direct,#data ORL immediate data to direct byte
XRL A,Rn exclusive OR register to accu
XRL A,direct exclusive OR direct byte to accu
XRL A,@Ri exclusive OR indirect RAM to accu
XRL A,#data exclusive OR immediate data to accu
XRL direct,A exclusive OR accu to direct byte
XRL direct,#data exclusive OR immediate data to direct byte
CLR A clear accu
CPL A complement accu
RL A rotate accu left
RLC A rotate A left through the carry flag
RR A rotate accu right
RRC A rotate accu right through the carry flag
SWAP A swap nibbles within the accu

-----------------
Data transfer

MOV A,Rn move register to accu
MOV A,direct move direct byte to accu
MOV A,@Ri move indirect RAM to accu
MOV A,#data move immediate data to accu
MOV Rn,A move accu to register
MOV Rn,direct move direct byte to register
MOV Rn,#data move immediate data to register
MOV direct,A move accu to direct byte
MOV direct,Rn move register to direct byte
MOV direct,direct move direct byte to direct
MOV direct,@Ri move indirect RAM to direct byte
MOV direct,#data move immediate data to direct byte
MOV@Ri,A move accu to indirect RAM
MOV@Ri,direct move direct byte to indirect RAM
MOV@Ri,#data move immediate to indirect RAM
MOV DPTR,#data16 load datapointer with a 16-bit constant
MOVC A,@A+DPTR move code byte relative to DPTR to A
MOVC A,@A+PC move code byte relative to PC to A
MOVX A,@Ri move external RAM (8-bit) to A
MOVX A,@DPTR move external; RAM (16 bit) to A
MOVX@Ri,A move A to external RAM (8-bit)
MOVX@DPTR,A move A to external RAM (16-bit)
PUSH direct push direct byte onto stack
POP direct pop direct byte from stack
XCH A,Rn exchange register with accu
XCH A,direct exchange direct byte with accu
XCH A,@Ri exchange indirect RAM with A
XCHD A,@Ri exchange low-order digit ind. RAM w. A

I ucz się!!!

Informacja to nie rozkaz. Zatwierdź lub zignoruj.

 
hlehle
 Wysłana - 12 marzec 2003 07:05      [zgłoszenie naruszenia]

Ja musze miec po polskiemu:P
Jakas knige sobie przeczytam:]

 
Ss
 Wysłana - 12 marzec 2003 17:58      [zgłoszenie naruszenia]

To przecież jest po polskiemu Nie ma tu nic czego by się nie dało zrozumieć.

Informacja to nie rozkaz. Zatwierdź lub zignoruj.

 
hlehle
 Wysłana - 12 marzec 2003 19:49      [zgłoszenie naruszenia]

hm za slaby ze mnie anglik to po pierwsze
a po drugie trzeba miec jakies podstawy
a ja zadnych nie mam
ja nie wiem co to procesor:]

 
Ss
 Wysłana - 12 marzec 2003 21:21      [zgłoszenie naruszenia]

A więc procesor to takie coś czarne długie lub kwardatowe i ma nóżki. Są różne wersje, jedne mają więcej nóżek inne mniej. Mają też więcej pamięci albo mniej. Mają też dodatkowe bajery w środku albo ich nie mają. Przedewszystkim mają wewnętrzną pamięć programu albo jej nie mają. I mają dużo innych rzeczy, a inne ich nie mają albo mają inne. To tak w skrócie

Informacja to nie rozkaz. Zatwierdź lub zignoruj.

 
hlehle
 Wysłana - 13 marzec 2003 00:08      [zgłoszenie naruszenia]

hm no wiec ja niewiele wiem:)
zglosze siejak cos bede umial.jakies podstawy

 
Aleoha
 Wysłana - 8 wrzesień 2003 19:06      [zgłoszenie naruszenia]

Nic niewiesz a chcesz juz programowć procesory ? hrhr

[Powiadom mnie, jeśli ktoś odpowie na ten artykuł.]


Odpowiedzi jest na 2 strony.   | następną
 
Wybierz stronę:  
Przegląd tygodnia | Wyślij odpowiedź

czy zna ktos asemblera na mK 8051

Strony: 1 2
 

 
Polecamy: urządzenia spawalnicze | MŚ w Piłce Nożnej - RPA 2010 | Forum | Komputery | Nauka | pomysł na biznes

wersja lo-fi


Pozycjonowanie i optymalizacje zapewnia Agencja Interaktywna

Copyright 2000 - 2010 KULTURYSTYKA.PL
 
Powered by Pazdan ForKat 4.0