Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Basic Assembly Programming
(section)
From Turing Complete
Views
Read
Edit
Edit source
View history
associated-pages
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===== Multi-Purpose Subtraction ===== To do this, we must take advantage of the fact that computers do not care where a value came from. They only care what the value ''is''. What we want is a completely logical object, a mask that refers to ''every'' bit. But we can get it in a completely arithmetic way - the value is <code>255</code>, which in 8-bit arithmetic is the same as <code>-1</code>. What’s the easiest way to get <code>-1</code>? <code>0 - 1</code>! We can <code>loadi</code> those values. But there’s one catch. <span id="moving-data-around"></span>
Summary:
Please note that all contributions to Turing Complete are considered to be released under the Creative Commons Attribution-ShareAlike (see
TuringComplete:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)