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
Hello & Welcome !
org #A000
ld hl,hello
loop ld a,(hl)
ret z
call #bb5a
inc hl
jr loop
hello byte "Hello World!",0
Welcome mate! Glad you've enjoyed our community, hope you stay :)
@Ast (https://www.cpcwiki.eu/forum/index.php?action=profile;u=573) : show-off :p
@Gryzor (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1) Hello world! is Hello world! :P
Heheh yeah indeed :)
Welcome here! :)
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
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