Skip to content

Commit

Permalink
Fix mistake in comment 🙃
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenretriverYT authored Dec 10, 2023
1 parent 2cd6589 commit ebf81bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Cosmos.Core_Asm/IOPortImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private class Read8AssemblerMany : AssemblerMethod
{
public override void AssembleNew(Assembler aAssembler, object aMethodInfo)
{
// the port index is in EBP+8
// the port index is in EBP+16
// the reference to the byte array is in EBP+12
XS.Set(XSRegisters.EDX, XSRegisters.EBP, sourceDisplacement: 16); // EDX = Port (ebp+16)
XS.Set(XSRegisters.ECX, XSRegisters.EBP, sourceDisplacement: 12); // ECX = Pointer to array (ebp+12)
Expand Down

0 comments on commit ebf81bb

Please sign in to comment.