No need to save megabytes of video data. Freeze the video and snap an jpeg of the asm file.
The $X option requires xdef. Separate asm modules can access common code using xref. All variable types can be passed to asm routines. Understanding how they are passed on the stack is the key.