#emit Discussion
#4

I can't find JZER.rel in PAWN Imp Guide.

I am guessing that JZER.rel works like SCTRL? We add 4 bytes for each instruction and operand to calculate the relative address.

EDIT:
Код:
fatal error 104: invalid assembler instruction "jzer.rel"
I am not using amx_assembly so I can't use @emit
--------------------------------------------------------------------
Код:
static nullstr[] = "";
getproperty(0,cmdtext,cellmin,nullstr);
Код:
push.c f4
;$par
push.c 80000000
;$par
push.s 10
;$par
push.c 0
;$par
push.c 10
sysreq.c 2	; getproperty
is faster than

Код:
getproperty(.name = cmdtext);
Код:
const.pri 104
heap 4
movs 4
push.alt
;$par
push.c 80000000
;$par
push.s 10
;$par
push.c 0
;$par
push.c 10
sysreq.c 2	; getproperty
This happens if the default argument is a string!

Speed Test:
138ms,140ms,136ms
160ms,155ms,154ms
Reply


Messages In This Thread
#emit Discussion - by Yashas - 20.06.2015, 18:47
Re: #emit Discussion - by ]Rafaellos[ - 20.06.2015, 19:08
Re: #emit Discussion - by Misiur - 20.06.2015, 21:18
Re: #emit Discussion - by Yashas - 21.06.2015, 04:38
Re: #emit Discussion - by Misiur - 21.06.2015, 07:50
Re: #emit Discussion - by Yashas - 21.06.2015, 08:48
Re: #emit Discussion - by PeterJane - 25.06.2015, 00:29
Re: #emit Discussion - by Yashas - 12.07.2015, 07:56
Re: #emit Discussion - by Vince - 12.07.2015, 10:46
Re: #emit Discussion - by Yashas - 12.07.2015, 10:54
Re: #emit Discussion - by Yashas - 31.08.2015, 15:46
Re : #emit Discussion - by Dutheil - 10.11.2015, 23:04
Re: #emit Discussion - by Yashas - 11.11.2015, 13:09
Re: #emit Discussion - by Dutheil - 18.07.2017, 14:26
Re: #emit Discussion - by Nero_3D - 18.07.2017, 23:47
Re: #emit Discussion - by Dutheil - 19.07.2017, 00:31
Re: #emit Discussion - by Nero_3D - 19.07.2017, 22:07
Re: #emit Discussion - by Dutheil - 29.12.2017, 14:45
Re: #emit Discussion - by Misiur - 29.12.2017, 15:24
Re: #emit Discussion - by Kaperstone - 29.12.2017, 15:49
Re: #emit Discussion - by Y_Less - 29.12.2017, 16:00
Re: #emit Discussion - by Dutheil - 29.12.2017, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)