Pass 4 bytes to fail(uint32_t)

This would become necessary if something failed on a platform with
16-bit int (EM_WSIZE == 2).

Remove unreachable `ret 0`.  If reached, it wouldn't work to return
from _m_a_i_n.
This commit is contained in:
George Koehler 2017-12-18 21:58:57 -05:00
parent a5e8dc8a06
commit aa9418c029

View file

@ -14,6 +14,9 @@
zeq *1 zeq *1
loc __LINE__ loc __LINE__
loc EM_WSIZE
loc 4
cuu
cal $fail cal $fail
ass EM_WSIZE ass EM_WSIZE
1 1
@ -31,6 +34,9 @@
zne *2 zne *2
loc __LINE__ loc __LINE__
loc EM_WSIZE
loc 4
cuu
cal $fail cal $fail
ass EM_WSIZE ass EM_WSIZE
2 2
@ -49,6 +55,9 @@
zeq *3 zeq *3
loc __LINE__ loc __LINE__
loc EM_WSIZE
loc 4
cuu
cal $fail cal $fail
ass EM_WSIZE ass EM_WSIZE
3 3
@ -67,11 +76,12 @@
zne *4 zne *4
loc __LINE__ loc __LINE__
loc EM_WSIZE
loc 4
cuu
cal $fail cal $fail
ass EM_WSIZE ass EM_WSIZE
4 4
cal $finished cal $finished
ret 0
end end