Skip to content

Commit

Permalink
OSGBPG return PTR# even when not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanizag committed Sep 9, 2021
1 parent 55a219f commit 872c9f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osGbpb.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ func execOSGBPB(env *environment) {
// Update the file control block
env.mem.pokeDoubleWord(controlBlock+cbDataAddress, address+transferred)
env.mem.pokeDoubleWord(controlBlock+cbDataCount, count-transferred)
env.mem.pokeDoubleWord(controlBlock+cbDataOffset, offset+transferred)
pos, _ := file.Seek(0, io.SeekCurrent)
env.mem.pokeDoubleWord(controlBlock+cbDataOffset, uint32(pos))

newP := p
if count-transferred != 0 {
Expand Down

0 comments on commit 872c9f9

Please sign in to comment.