I was practicing a very simple stack using SASM and assembly language.
%include "io64.inc"
section .text
global CMAIN
CMAIN:
mov rbp, rsp;
push 378;
pop rax;
PRINT_DEC 1,ax
xor rax, rax
ret
When writing this code, if 378 was converted into bits, it would become 0001 0111 1010 and exceed 1 byte, so an error was expected, but 378 was printed normally. Why is this happening?