CPCWiki forum

Deutsches CPC-Forum => Programmierung => Topic started by: funkheld on 09:00, 20 November 20

Title: cpctelera : symbol(byte word) , symbolafter(byte, word)
Post by: funkheld on 09:00, 20 November 20
Hi good afternoon.

how can you please implement that for cpctelera?

i need these exercises please.
would like to implement other functions myself.

I don't know the spelling in asm for cpctelera.

Thank you.
greeting

----------------------------------------------------------
function byte symbolafter(byte, word)
{
   ld   hl 2 
   add  hl sp 
   ld   e (hl) 
   inc  hl 
   ld   d (hl)                             ; DE = 2nd parameter 
   inc  hl 
   inc  hl 
   ld   l (hl) 
   ld   h 0                                ; HL = 1st parameter 
   ex   de hl                              ; E =first character to change  HL = table address 
   jp   $BBAB
}


function byte symbol(byte  word)
{
   ld   hl 2 
   add  hl sp 
   ld   e (hl) 
   inc  hl 
   ld   d (hl)                             ; DE = 2nd parameter 
   inc  hl 
   inc  hl 
   ld   a (hl)                             ; A = 1st parameter 
   ex   de hl                              ; HL = 2nd parameter 
   jp   $BBA8
}


function byte window(byte, byte, byte, byte)
{
   ld   hl 3 
   add  hl sp 
   ld   e (hl)                             ; E = 4th parameter 
   inc  hl 
   inc  hl 
   ld   a (hl)                             ; A = 3th parameter 
   inc  hl 
   inc  hl 
   ld   d (hl)                             ; D = 2nd parameter 
   inc  hl 
   inc  hl 
   ld   h (hl)                             ; H = 1st parameter 
   ld   l a                                ; L = 3th parameter copy 
   dec  h 
   dec  l 
   dec  d 
   dec  e                                  ; Convert to physical coordinates 
   jp   $BB66
}
-------------------------------------------------
Title: Re: cpctelera : symbol(byte word) , symbolafter(byte, word)
Post by: SRS on 23:41, 21 November 20
Leider verstehe ich im Deutschen Forum kein Ausländisch ...   >:(
bearbeitet:

In Foren wie hier ist es üblicherweise nicht gern gesehen, Posts in verschiedenen Unterverzeichnissen zu öffnen. Es führt daher eher selten dazu, schneller eine Antwort zu erhalten.
Powered by SMFPacks Menu Editor Mod