[Tutorial] AMX Assembly (#emit)
#17

Quote:
Originally Posted by Sanya4
View Post
btw, can u give me link to all opcodes?(not found as well)
Look into the Pawn Implementer's Guide

http://y-less.com/uploads/pawn-imp-3.0.3367.pdf (2005 version)
(Or in the rar file from the first post - 2007 version)

and search for Instruction reference (should be either page 94ff or 99ff)

Quote:
Originally Posted by Sanya4
View Post
About getting address of function: I think funcidx returns id only for public(and count only publics)
funcidx returns the index in the public table, see the implementer's guide

Quote:
Originally Posted by Sanya4
View Post
And why we are using LOAD.S.alt(it stores content, not address)? But CONST.pri loads addreess?!?!!?!?
you needs to use load.s.alt because arrays are always passed by reference (only the address is passed)
const.pri/alt doesn't load anything, it just puts the given value into pri/alt

Doing load.s.alt cmdtext would load the address where content of cmdtext is saved
however doing const.alt cmdtext would only transfer the relative address into alt

const.pri/alt 5 // pri/alt = 5
const.pri/alt global_variable // gets address relative to DAT section
const.pri/alt local_variable // gets address relative to FRAME
const.pri/alt function // gets address relative to COD

also add.c cmdtext is the same as add.c 16
Reply


Messages In This Thread
AMX Assembly (#emit) - by Yashas - 15.10.2015, 17:33
Re: AMX Assembly (#emit) - by Yashas - 15.10.2015, 17:35
Re: AMX Assembly (#emit) - by Yashas - 15.10.2015, 17:37
Re: AMX Assembly (#emit) - by Ahmad45123 - 15.10.2015, 18:10
Re: AMX Assembly (#emit) - by SecretBoss - 15.10.2015, 20:31
Re: AMX Assembly (#emit) - by DaniceMcHarley - 17.10.2015, 08:49
Re: AMX Assembly (#emit) - by Stanford - 13.01.2016, 23:19
Re: AMX Assembly (#emit) - by darkdevil - 17.05.2016, 14:37
Re: AMX Assembly (#emit) - by Dutheil - 24.06.2016, 20:59
Re: AMX Assembly (#emit) - by Nero_3D - 24.06.2016, 21:32
Re: AMX Assembly (#emit) - by Yashas - 25.06.2016, 06:59
Re: AMX Assembly (#emit) - by Yashas - 15.07.2016, 15:00
Re: AMX Assembly (#emit) - by Luicy. - 05.08.2016, 19:07
Re: AMX Assembly (#emit) - by Sanya4 - 26.08.2016, 21:16
Re: AMX Assembly (#emit) - by Nero_3D - 27.08.2016, 03:14
Re: AMX Assembly (#emit) - by Sanya4 - 27.08.2016, 19:12
Re: AMX Assembly (#emit) - by Nero_3D - 27.08.2016, 22:15
Re: AMX Assembly (#emit) - by JakeXxX - 28.08.2016, 07:35
Re: AMX Assembly (#emit) - by spookie - 31.01.2017, 22:14
Re: AMX Assembly (#emit) - by HydraHumza - 01.02.2017, 12:03
Re: AMX Assembly (#emit) - by Dutheil - 18.07.2017, 13:43
Re: AMX Assembly (#emit) - by KushalD - 30.07.2017, 06:00
Re: AMX Assembly (#emit) - by Yashas - 01.10.2017, 09:39
Re: AMX Assembly (#emit) - by Yashas - 03.06.2018, 11:31

Forum Jump:


Users browsing this thread: 2 Guest(s)