Repository navigation
Pitfall: AMMX code with a separate LOAD or STORE - #84
Merged
Merged
Conversation
Gunnar (2026-11-24): AI agents load every AMMX operand with LOAD and store pack results with STORE. Operations take <vea> (register, memory or immediate) as their first operand; store and pack instructions have <vea> on the right. Don't use LOADI and STOREI. Includes the vasm 2.0g syntax for the repeated-word immediate (paddb.w #$0101) and the silent 64-bit immediate without the suffix, the PC-relative exception, and the names vasm accepts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Decision WDrijver (option b): the original PRM stays as it is; the converter marks loadi.md and storei.md deprecated, superseded by the AMMX load/store pitfall, with a reason line from Gunnar's 2026-11-24 statement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Added: the PRM converter now generates |
PR #64 broke the KB checks on main (MD056, too many cells). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Also fixes the Markdown lint failure on main since #64 (unescaped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New pitfall
core/pitfalls/ammx-separate-load-and-store.md(draft, ai-assisted), from Gunnar's input of 2026-11-24.<vea>(register, memory or immediate) as their first operand, so aloadof a value used once is waste;packuswb/pack3216write to memory themselves, so astoreafter them is waste.paddw d1,d2,(a0)), so their results still needstore.paddb.w #$0101,d1,d2gives the PRM's repeated-word#imm.W; without the suffix it silently assembles a 64-bit immediate$0000000000000101. Gunnar's suggested#imm.wsyntax is not supported (warning, quad).loadi/storei(G). Their PRM pages are generated fromsources/official/AC68080PRM.odtand are not changed here; removing or deprecating them is a maintainer decision on the original.Related links added in
ammx-where-it-wins.mdandvasm-68080-encoding-issues.md. The code examples assemble without warnings with vasm 2.0g.Knowledge base files relied on
core/cpu-68080/prm/ammx/{ammx-format,load,store,storem,storem3,storec,storeilm,packuswb,pack3216,loadi,storei,padd}.md,core/pitfalls/ammx-pc-relative-source.md,core/cpu-68080/superscalar-issue.md.🤖 Generated with Claude Code