flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Heap > why is in most assembler languages MOV not CPY?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
_shura



Joined: 22 May 2015
Posts: 60
like this:

Code:

macro ? arguments&
  match =[ memory =] == operandsarguments
    mov [ memory ], operands
  else
    arguments
  end match
end macro



^^
Post 25 Oct 2017, 19:25
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 15241
Location: 1I/ʻOumuamua
It can be done in fasm1 without any macros:

Code:
       equ mov
       ax,bx
       cx,5
       [bx],al
       cl,[si]
       byte[di],0xff


Code:
flat assembler  version 1.71.64  (3145344 kilobytes memory)
1 passes12 bytes.

But the board breaks the code due to rewriting the nonbreaking space (0xa0) with an ordinary space. Sad So you will need to download the raw code as an attachment if you want to test it.


Description:
Download
Filename: BlankOpcode.asm
Filesize: 71 Bytes
Downloaded: 14 Time(s)

Post 26 Oct 2017, 02:10
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.