This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;sayiyi bcd ye ceçirme | |
stc | |
cmc | |
mvi B,009Ah; Baz alınan sayı | |
mvi A,0 ; | |
lxi H,0 ; sonuç HL'de saklanacak | |
basla: adi 1; A'ya 1 ekle | |
daa ; A'yı BCD'ye çevir | |
jnc eldesiz ; Çevirme sonucunda elde yoksa ilerle | |
inr H ;elde varsa H'yi (yani üst haneyi) artır |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stc | |
cmc | |
; GNUSim8085 de rar ral rlc rrc sorunu ile ilgili ornek | |
mvi A,0ABH | |
rar ; [RRC] olarak gör | |
; C=0 A=10101011(AB) idi | |
; C=1 A=01010101(55) oldu | |
mov b,a ; rrc sonucu B de | |
ral ; [RLC] olarak gör | |
; C=1 A=01010101(55) idi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Bu program 16 bit iki sayıyı | |
;toplayarak bellege kaydediyor | |
stc | |
cmc | |
call topla | |
lhld 0200H | |
xchg | |
lhld 0202h | |
mov a,e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stc | |
cmc | |
call sayi_yukle | |
mov a,b ; a'ya 1.sayıyı yük. | |
cmp c ; [(a or b)-c] karsılastır | |
cc c_buyuk_sonlan ; elde varsa c daha büyük değisiklige gerek yok | |
mov m,c ; kucuk sayiyi 0200H adrsine yükle | |
inx h ; 0201H adresinee büyüğü yükle | |
mov m,b ; elde yoksa b büyük | |
c_buyuk_sonlan: hlt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
basla get | |
ifzero duyur | |
add toplam | |
store toplam | |
load bolen | |
add 1 | |
store bolen | |
goto basla | |
duyur load toplam | |
div bolen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BinaryTree: | |
def __init__(self,rootObj): | |
self.key=rootObj | |
self.left = None | |
self.right = None | |
self.sayac=1 | |
def insertLeft(self,newNode): | |
if self.left == None: | |
self.left = BinaryTree(newNode) | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def listeYarilama(alist,atlama): | |
altliste=[] | |
for i in range (0,len(alist),atlama+1): | |
altliste.append(alist[i]) | |
return altliste | |
def listeYarilama_enbuyugubul(alist,atlama): | |
temp=alist[0] | |
for i in range (0,len(alist),atlama+1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HashTableCS: | |
def __init__(self,size): | |
self.slots=[None]*size | |
def store(self,key,value): | |
hashvalue=self.hashfunction(key,len(self.slots)) | |
if self.slots[hashvalue]==None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HashTable: | |
def __init__(self,size): | |
self.slots=[None]*size | |
self.data=[None]*size | |
def store(self,item,data): | |
#hashvalue=self.hashfunction(item,len(self.slots)) | |
hashvalue=self.mid_square(item,len(self.slots)) | |
if self.slots[hashvalue]==None: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bagliliste: | |
def __init__(self,size): | |
self.data=[None]*size | |
def ekleme(self,item,data): | |
hashdeger=self.hashfon(item,len(self.data)) | |
if self.data[hashdeger]==None: | |
self.data[hashdeger]=data |
NewerOlder