sannybuilder / dev

Sanny Builder Bug Tracker and Roadmap development
https://sannybuilder.com
49 stars 0 forks source link

HEX..END improvements #230

Closed x87 closed 1 year ago

x87 commented 1 year ago
const
  x = 0x3
end
hex
   01(x)
end

becomes

hex
  01 01 01
end
 hex
     00 00 00 00 01 00 00 00 00
 end

becomes

 hex
     00 00 00 00 01 00(4)
 end
MatiDragon-YT commented 1 year ago

If possible add support for put number with calculates mathematics? Example: hex 00(4*2) end for put

hex
   00 00 00 00
   00 00 00 00
end
x87 commented 1 year ago

For now it expects just a single number, not an expression. You will have to precalculate it.

x87 commented 1 year ago

Feedback: add support for constants and hexadecimal numbers for n. Also enforce n>0