News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Hello world!

Started by eisbaer, 11:25, 16 September 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eisbaer


Hi everybody, new member here joining the CPCWiki community!


Started with an Amstrad CPC 6128 in 1986, and still continue using it almost everyday of my life.


I've been following this forum from a long time ago, and I think is now time for registering and start contributing to this amazing community.


Best regards from Spain


eisbaer

Ast


Hello & Welcome !




       org #A000


       ld hl,hello
loop ld a,(hl)
       ret z
       call #bb5a
       inc hl
       jr loop
hello byte "Hello World!",0

_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

Gryzor

Welcome mate! Glad you've enjoyed our community, hope you stay :)

@Ast : show-off :p

Ast

@Gryzor Hello world! is Hello world!  :P



_____________________

Ast/iMP4CT. "By the power of Grayskull, i've the power"

http://amstradplus.forumforever.com/index.php
http://impdos.wikidot.com/
http://impdraw.wikidot.com/

All friends are welcome !

Gryzor


mr_lou


Urusergi

Hi eisbaer!
I prefer this version of the printing routine. It's slightly faster  8)



       org #A000


       ld hl,hello
loop   ld a,(hl)
       inc hl       ;(inc l)
       and a
       call nz,#bb5a
       jr nz,loop
       ret
hello  byte "Hola eisbaer, bienvenido!",0


eisbaer



btw



#include <stdio.h>
main()
{
  printf("Thanks for the warm welcome!");
}



and then running z88dk with "zcc +cpc -lndos -o hello.bin hello.c"...


Probably will take some additional CPU cycles when running on the CPC, but should do the trick as well  ;D

Powered by SMFPacks Menu Editor Mod