Author Topic: CPCtelera : symbolafter , symbol , window in the asm  (Read 310 times)

0 Members and 1 Guest are viewing this topic.

Offline funkheld

  • CPC6128
  • ****
  • Posts: 292
  • Liked: 16
  • Likes Given: 0

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

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 606
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 603
  • Likes Given: 337
Re: CPCtelera : symbolafter , symbol , window in the asm
« Reply #1 on: 18:08, 20 November 20 »
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

Offline funkheld

  • CPC6128
  • ****
  • Posts: 292
  • Liked: 16
  • Likes Given: 0
Re: CPCtelera : symbolafter , symbol , window in the asm
« Reply #2 on: 18:53, 20 November 20 »

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

Offline SRS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 606
  • Country: de
  • Schneider CPC464 - what else ?
  • Liked: 603
  • Likes Given: 337
Re: CPCtelera : symbolafter , symbol , window in the asm
« Reply #3 on: 00:33, 22 November 20 »
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.