There is a piece с-code with asm-inline.
I not the strong expert of last.
The mistake is generated in last line of the following piece :
can't find a register in class CREG whle reloading asm
	"movl _columns,%1\n\t"
	::"a" (0x0720),
	"c" ((lines-1)*columns>>1),
	"S" (origin)
It seems there are no parameters.
Probably, option of compilation wrong:
CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -finline-functions -nostdinc -I../include
Compiler - 2.96