Author Topic: Hello world!  (Read 157 times)

0 Members and 1 Guest are viewing this topic.

Offline eisbaer

  • Speccy
  • *
  • Posts: 2
  • Country: es
  • Liked: 7
  • Likes Given: 0
Hello world!
« on: 13:25, 16 September 20 »

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

Online Ast

  • 6128 Plus
  • ******
  • Posts: 1.083
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 968
  • Likes Given: 727
Re: Hello world!
« Reply #1 on: 14:04, 16 September 20 »

Hello & Welcome !

Code: [Select]


       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"


Amstrad Plus French Forum

All friends are welcomed !

Online Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.944
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3413
  • Likes Given: 6125
Re: Hello world!
« Reply #2 on: 14:06, 16 September 20 »
Welcome mate! Glad you've enjoyed our community, hope you stay :)

@Ast : show-off :p

Online Ast

  • 6128 Plus
  • ******
  • Posts: 1.083
  • Country: fr
    • Amstrad cpc Website of Ast/iMPACT
  • Liked: 968
  • Likes Given: 727
Re: Hello world!
« Reply #3 on: 14:08, 16 September 20 »
@Gryzor Hello world! is Hello world!  :P



_____________________

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


Amstrad Plus French Forum

All friends are welcomed !

Online Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.944
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3413
  • Likes Given: 6125
Re: Hello world!
« Reply #4 on: 14:11, 16 September 20 »
Heheh yeah indeed :)

Offline mr_lou

  • 6128 Plus
  • ******
  • Posts: 3.105
  • Country: dk
    • index.php?action=treasury
    • 8-bit Memoirs - a Blu-ray diskmag-like eBook about the 8-bit era
  • Liked: 1272
  • Likes Given: 2547
Re: Hello world!
« Reply #5 on: 15:32, 16 September 20 »
Welcome here!  :)

Offline Urusergi

  • CPC6128
  • ****
  • Posts: 222
  • Country: es
  • Liked: 433
  • Likes Given: 1449
Re: Hello world!
« Reply #6 on: 22:44, 16 September 20 »
Hi eisbaer!
I prefer this version of the printing routine. It's slightly faster  8)
Code: [Select]


       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

Offline eisbaer

  • Speccy
  • *
  • Posts: 2
  • Country: es
  • Liked: 7
  • Likes Given: 0
Re: Hello world!
« Reply #7 on: 23:27, 16 September 20 »


btw
Code: [Select]


#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