News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

CPCtelera : symbolafter , symbol , window in the asm

Started by funkheld, 13:20, 20 November 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld


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
}
-------------------------------------------------

SRS

I don't even know any assembler that will assemble your code above ...
CPCTELERA uses SDCC. So you can use ASM like you do in SDCC programs.
Examples can be found in the CPCWIKI. https://www.cpcwiki.eu/index.php/SDCC_and_CPC

funkheld


Thank you.


I would like to know how this is written in cpctelear as asm.
cpctelera has a different slice format at the time of delivery.


greeting

SRS

As stated above: please read the documentation, of CPCTELERA and SDCC (as linked), maybe the library has the commands you need so you don't have to implement them ?

Reading examples, manuals, trying it - development is NOT "hey write me what I want in this tool".

I have not much spare time for my cpc hobby and if I don't see "learning" just questions (here and in the german part of this forum, and even there in ENGLISH and not GERMAN) - well ...

Seems we got "CPCMAN" from german wiki replicated here. I'm out until the questions show a bit of understandment and self-effort.

Powered by SMFPacks Menu Editor Mod