flat assembler
Message board for the users of flat assembler.

Index > Programming Language Design > Idea: FASMG in Spanish

Author
Thread Post new topic Reply to topic
codestar



Joined: 25 Dec 2014
Posts: 254
codestar 13 May 2015, 04:35
Code:
; include 'system.inc'

incluir 'sistema.inc'

definir formato db ; define format db

.codigo, .datos    ; .code, .data

numerico a, b, c   ; a=0, b=1, c=2

texto hola=\
  'Hola Mundo'     ; text hi='Hi, World'    
Code:
macro nombre       ; macro name
  ; ...
final macro        ; end macro

partido a+b*c, p   ; match a+b*c, p
  si x=0           ; if x=0 
    ; ...
  mas si x=1       ; else if x=1
    ; ... 
  final si         ; end if
final partido      ; end match

iterar nombre, p   ; iterate/irp name, p
    ; ...
final iterar       ; end iterate/irp

funcion mensaje    ; function message
  decir 'Hola'     ;   say 'Hi'
finalf             ; endf    
Code:
; class POINT = integer x, y

clase PUNTO = entero x, y

espacio nombre     ; namespace name
  ; ...
final espacio      ; end namespace    
Post 13 May 2015, 04:35
View user's profile Send private message Reply with quote
codestar



Joined: 25 Dec 2014
Posts: 254
codestar 13 May 2015, 05:23
Code:
; FRENCH TRANSLATION

macro nom
  ; ...
fin macro

match a+b*c, p
  si x=0          ; if
    ; ...
  autre si x=1    ; else if
    ; ...
  fin si          ; end if
fin match

repeter nom, p    ; iterate/irp
  ; ...
fin repeter

fonction message
  dire 'bonjour'  ; say 'hello'
finf    
Post 13 May 2015, 05:23
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.